Question Locked

Help with hello world, I keep getting error!!

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Heres the code I put in....

int main()
{
cout << "Hello people and world"; end1;
cout << "I want to be a programmer"; end1;
cin.get()
}

In the error it is saying it needs a ";" after < in iostream

4 replies

by ic-it

that that one was laid out in the same chapter. We usually don't do folks homework, but ... back a few hundred years ago it went something like this;

#include

main()
{
cout << "Hello World!";
return 0;
}

Perhaps you are missing the .h

by jaqui

the newest C++ spec is iostream, or any other include, doesn't require the .h for the headers.

any recent [ 4 years or so ] C++ compiler and library set will work without the .h

what he is missing is the include :)

by ic-it

It's nice to know. It has been years since I've done any C or C++ programming.

This discussion is closed to new replies.