cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/16/05:46:22

From: Lozza <laurence DOT h AT virgin DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: CANNOT GET ANYTHING TO WORK!!
Date: Sat, 16 Jan 1999 10:40:05 +0000
Organization: Virgin News Service
Lines: 23
Message-ID: <36A06C85.3A8C@virgin.net>
NNTP-Posting-Host: 212.250.194.83
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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