#include <iostream>It happens only in the debug mode:
#include <sstream>
using namespace std;
int main (int argc, char * const argv[])
{
int x = 9;
stringstream ss;
ss << x;
cout << "x = " << ss.str() << endl;
return 0;
}
Program loaded.
run
[Switching to process 4719]
Running…
x =
Debugger stopped.
Program exited with status value:0.
In release everything's fine:Program loaded.
run
[Switching to process 4768]
Running…
x = 9
Debugger stopped.
Program exited with status value:0.
Here is an answer:
http://lists.apple.com/archives/xcode-users/2009/Oct/msg00616.html
No comments:
Post a Comment