Mail Archives: djgpp/1999/01/16/07:40:47
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 -