cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/16/07:40:47

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CANNOT GET ANYTHING TO WORK!!
Date: 16 Jan 1999 10:48:29 GMT
Organization: University of Lulea, Sweden
Lines: 36
Message-ID: <77pqpt$b8n$4@news.luth.se>
References: <36A06C85 DOT 3A8C AT virgin DOT net>
NNTP-Posting-Host: queeg.ludd.luth.se
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Lozza (laurence DOT h AT virgin DOT net) 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.

Il pleut des elephants roses de-hors mes yeux.

But seriously, how about showing us the command line and error
messages you get when you try to compile.

Oh, and don't forget to read the FAQ.


Right,

							MartinS

- Raw text -


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