From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Thu, 29 Jan 1998 09:45:52 +0100 Subject: Re: cout problem Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk >maybe if you say also *which* error you got > > Sorry, I thought that I mentioned this in my original posting. The error I got > was that cout was used without being initialized first. But, according to the > documentation, libio.h does initialize cout, as well as cin and cerr. The > listing again: > > #include > void main() > { > cout << "Hello World!/n"; > } sorry... I could not find it... maybe I didn't see that you had posted two messages? Anyway: use in stead of . cin cout and cerr are declared there. BTW: remember to use "int main()" in stead of "void main()". This is the ANSI standard definition for main and in some systems other then DOS void main causes some problems. One last thing (sorry :-) is: "/n" is not the newline char. It is "\n" ciao Giacomo