Mail Archives: djgpp/1999/01/16/09:02:54
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 -