Thank you very much everyone! But... AH HA! It still doesn't work. Now using the exact code:
# <iostream>
int main()
{
std::cout<<"Hello world! (and Eric)"<<endl;
return 0;
}
returns the copile error message:
Compiling...
testprgm.cpp
testprgm.cpp(2) : error C2019: expected preprocessor...
nope, didnt work. got this log instead:
Compiling...
testprgm.cpp
testprgm.cpp(2) : error C2019: expected preprocessor directive, found '<'
testprgm.cpp(6) : error C2653: 'std' : is not a class or namespace name
testprgm.cpp(6) : error C2065: 'cout' : undeclared identifier
I tried compiling a "hello world" script but I got this error message:
Compiling...
testprgm.cpp
testprgm.cpp(2) : error C2019: expected preprocessor directive, found '<'
testprgm.cpp(6) : error C2065: 'cout' : undeclared identifier
Why doesn't it work? Am I even supposed to compile it first...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.