I have some strings and 3 integers and I want to put them all in a string and return them. That's the error I get with this code:
string Car::infoCar(){
stringstream str;
str<< manufacturer << " " << model << " " << AK << " " << cspeed << " " << maxspeed << " " << cgear;
return str.toString();
}
Also I use:
#include <sstream>
#include <string>
using namespace std;
The same error I do get when I run my other homework as well using the same way.