Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!tmab+ From: tmab+@andrew.cmu.edu (Thomas Mok) Newsgroups: comp.sys.next Subject: Re: Ok. So where are the C++ includes? Message-ID: Date: 27 Apr 91 03:17:15 GMT References: Distribution: comp Organization: Carnegie Mellon, Pittsburgh, PA Lines: 26 In-Reply-To: Excerpts from netnews.comp.sys.next: 25-Apr-91 Ok. So where are the C++ i.. Andrew John Hobbs@cs.odu (1210) > Sorry if I'm ignorant on this subject. I just got a book on C++ in obviously > mistaken impression that I can actually learn it. So I get ready to type in > the good old HelloWorld program that uses the supposedly standard streams.hxx > class of objects. Well and good. CC++ can't find it. I search and come > up with streams.h in the streams directory. Cool. Include that. cout is > not defined. ARGH!!! This was exactly how I felt when I tried to code my project in C++. I then remember that I have previously downloaded some C++ source files from the net. They were made correctly on my machine, and I thought I might be able to figure out how they were done. Quite strangely, they seemed to have avoided using cout completely. Now is that the properly way to fix a problem? The next step that I took was to go back to the good old printf statements. The CC++ compiler gave me a warning for implicit declaration of printf. I thought including stdio.h might help, but obviously stdio.h was not appropriate. I finally gave up and went back to C. I was frustrated. Tom