Message-Id: <36A09B73.C16D1FE4@cableol.co.uk> Date: Sat, 16 Jan 1999 14:00:19 +0000 From: Allens X-Mailer: Mozilla 4.04 [en] (Win95; I) Mime-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: CANNOT GET ANYTHING TO WORK!! References: <36A06C85 DOT 3A8C AT virgin DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Have you downloaded gpp281b (or whatever the latest version is,) because you say you haven't got iostream.h which comes in gpp281, as well as the c++ compiler gxx/g++. Peter Allen Lozza wrote: > > Path is fine... > > Must be the code - can anyone help ? > > #include > > int a, b, c; > > void main() > > { > cout << "Give me a number for A. \n"; > cin >> a; > cout << "\n\n Give me a number for B. \n"; > cin >> b; > cout << "\n\n Give me a number for C. \n"; > cin >> c; > cout << "The average for A B C is: " << (a + b + c) / 3; > return ; > } > > I know iostream.h is not available - anyone any other ideas? Keep > getting undeclared variable for cout, cin etc.. Thanks.