Error
Why i am getting this error in Visual studio 2010 thanks
Error 1 IntelliSense: expected a declaration e:\visual c++ 2010\ex2_02.cpp 1 10 Ex2_02
Error 2 IntelliSense: identifier "cout" is undefined e:\visual c++ 2010\ex2_02.cpp 11 2 Ex2_02
Error 3 IntelliSense: expected a ';' e:\visual c++ 2010\ex2_02.cpp 14 10 Ex2_02
Error 4 error C2143: syntax error : missing ';' before ':' e:\visual c++ 2010\ex2_02.cpp 14 1 Ex2_02
Error 5 error C2143: syntax error : missing ';' before ':' e:\visual c++ 2010\ex2_02.cpp 14 1 Ex2_02
// Ex2_02.cpp
// Exercising Output
#include <iostream>
using std::cout;
using std::endl;
int main ()
{
int num1 = 1234, num2 = 5678;
cout << endl;
cout << num1 << num2;
cout << endl;
return 0:
}
|