What compiler do you use?
Printable View
What compiler do you use?
Is it a bugs-free version?
There were some bugs in earlier gcc std implementations.
About your version you could read https://gcc.gnu.org/gcc-4.7/
You must be corrupting memory somewhere (as I think VictorN is suggesting) since even your literal strings are not being outputted correctly.
Example: Your code:
Actual output:Code:cout<<"This is the message to send: "<<message<<endl;
What happened to the "This is the" part of "This is the message to send"? Only the second part of your literal string (i.e.,"message to send") is being outputted.Quote:
message to send: llo my name is George
Perhaps you are stepping on memory in one of your other threads.
Mike