Original Post
There's probably an obvious answer as to why this happens, but say I do "Hello World" in Eclipse using C++ using namespace std; int main() { cout << "Hello World" ; return 0; } Spacing and such is missing but the point is that it compiles correctly in Eclipse C++. If I put the same code in Xcode with a new C++ project it fails. Looking up how to do "Hello World" in Xcode using C++ comes up with: int main (int argc, char * const argv[]) { // insert code here... std::cout << "Hello, World!\n"; return 0; } But why the different (and what seems like more complicated) syntax? The books and videos I'm watching explain the code that Eclipse can compile correctly. But seeing that I'd like to make iPhone games I pretty much need to get Xcode working.