Mail Archives: djgpp/2002/08/13/14:30:18
im a complete newb at programming so i went out and bought this book sams teach
yorself c++ in 24 hours and the djgpp compiler came with but im stuck.
the book tells me to make write hello.cpp as follows:
#include <iostream.h>
int main()
{
cout << "hello world!\n";
return 0;
}
that is exactly how the book shows it also but,
when i compile it i get a list of errors;
hello.cpp: inf function 'int main()':
hello.cpp:6: count undeclared (first use this function)
hello.cpp:6: (each undeclared identifier is reported only once
hello.cpp:6: for each function it appears in.)
hello.cpp:6: parse error before ';'
can anyone tell me what im doing wrong?
- Raw text -