I have just started C++ and I'm not really sure what I am doing, but so far I have some "hello world" code from a tutorial.
#include <iostream>
//i only put this first line from users telling me to, it wasn't part of the original post. edited..
int main () {
std::cout << "Hello, World!\n";
return 0;
}
The compiler (Xcode for mac) says that there is an 'unexpected expression' right before the cout
part of the code. I have no idea how to fix this problem. Can anyone help?