Guest_imported
New member
- Jan 1, 1970
- 0
Hi Guys! When run the code below in my Borland C++ 5.02 i get the error msg "Must use C++ for the type iostream." But i am using C++. My frens says theres an option that allows u to either compile in C or C++. If that is true, where do i change it so that i can compile the following program.
#include <iostream>
int main()
{ int i = 10, j=20;
int k = (i+j)/2;
std::cout << "i is " <<i
<<" and j is " << j << std::endl;
std::cout << "average is "<< k
<< std::endl;
return 0;
}
#include <iostream>
int main()
{ int i = 10, j=20;
int k = (i+j)/2;
std::cout << "i is " <<i
<<" and j is " << j << std::endl;
std::cout << "average is "<< k
<< std::endl;
return 0;
}