i am very new to c++ and programming in general.
i bought a book called c++ all in one desk reference for dummies.
i am a few pages in and im having trouble making words come up into a dos box.
im using a program called dev-c++
#include
#include
int main(int argc, char *argv[])
{
cout << "Hello, i am your computer talking." << endl;
system("PAUSE") ;
return 0;
}
when i enter that, the error box on the bottom of dev-c++ says
line 8 message: cout undeclared (first use this function)
line 8 message: endl undeclared (first use this function)
also, if i delete line 8 of that, it works fine, a dos box pops up and says press any key to continue.
if you could please give me a few tips upon what i might be doing wrong,
please tell me!
2007-03-11
04:54:55
·
6 answers
·
asked by
geoff w
1