Hi All,
I'm using VS2008 C++.
As I understand it there is no way to pass something like this in a C++ stream : (without using external libraries)
"number " << i <------ when i is an integer.
So I was looking for a better way to do this, and I all I could come up with is create a string using :
char fullstring = new char[10];
sprintf(fullString, "number %d", i);
.... pass fullstring to the stream .....
delete[] fullString;
I know it's stupid, but is there a better way of doing this?