From 'Accelerated C++', I've entered the following into my Visual C++.Net
editor:
#include
int main()
{
std::cout << "Hello, world!" << std::endl;
return 0;
}
and get these error messages when compiling:
d:\C++Work\accelc-1\accelc-1.cpp(16): error C2065: 'endl' : undeclared
identifier
d:\C++Work\accelc-1\accelc-1.cpp(16): error C2065: 'cout' : undeclared
identifier
d:\C++Work\accelc-1\accelc-1.cpp(16): error C2296: '<<' : illegal, left
operand has type ''unknown-type''
d:\C++Work\accelc-1\accelc-1.cpp(16): error C2297: '<<' : illegal, right
operand has type 'char [15]'
A very simple program that I can't debug.