This works fine for me on OS X 10.3.3 - Xcode 1.1:
Code:
C++ is power programming.
Testing has exited with status 0.
That is the actual output from the "Run" window. I opened a new Tool-C++ project, which had functionally identical code as the original post, copy/paste the original "problem" code and clicked Build and Go.
I think there may have been an issue with creating the original project that caused the problems. The different project types all have special settings to build the resulting targets, its not like they all have the same steps or parameters. Don't use "Empty Project" unless you know what you are doing (as far as your particular project's requirements).
BTW I have never had problems getting output in Xcode or Project Builder via printlining.
It doesn't please me at all, either. I tend to use the IDE's editor just for the syntax highlighting and compile and run at the shell prompt--well, just for non-GUI applications.
jGrasp from Auburn Univ. is a good IDE--it's lightweight, supports C, C++, Java, and Objective-C, so anyone interested might try that instead. Eventually, Apple will get it worked out.