C
cppaddict
I'm getting an compile error (using cygwin gcc on windows xp) when I
try to compile the following simple program:
#include <iostream>
int main(void) {
cout << "C++ Hello World";
return 0;
}
It says that cout is undefined. Adding the line "using namespace
std;" after the include doesn't fix the problem. Anyone know what's
going on and how I can fix it?
Thanks,
cpp
try to compile the following simple program:
#include <iostream>
int main(void) {
cout << "C++ Hello World";
return 0;
}
It says that cout is undefined. Adding the line "using namespace
std;" after the include doesn't fix the problem. Anyone know what's
going on and how I can fix it?
Thanks,
cpp