thank's for read, this is easy question but ... i'am surprised.
My code is :
/* GET THE TIME */
time_t theTime = time(0);
struct tm *aTime = localtime(&theTime);
int mhour = aTime->tm_hour;
ostringstream oss;
string myString = " ";
oss << mhour;
myString += oss.str(); // OKAY, OUTPUT Correct
std::cout << myString << endl;
// But if i replace and execute this :
oss << (mhour + 3);
myString += oss.str();// OUTPUT IS EMPTY ! Why ? How can i add +, -, * on "mhour" ?
Why ? How can i add +, -, * on "mhour" ?