www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/16/09:02:54

Message-Id: <36A09B73.C16D1FE4@cableol.co.uk>
Date: Sat, 16 Jan 1999 14:00:19 +0000
From: Allens <allen DOT asjp AT cableol DOT co DOT uk>
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>
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 <iostream.h>
> 
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019