In future please take the trouble to copy and paste the code and errors as text into you message rather than pasting a screen shot.
The problem is not in your code it is in the header iosfwd which is presumably included through iostream.
Check your compile options to make sure they are correct, pay particular attention to the precompiled header options.
Thx, but can you be more specific??? I don't really know where to find the options.....
The code in text
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello"<<endl;
return 0;
}
Here are the error in text...
Error 1 error C2146: syntax error : missing ';' before identifier '_Fpz' c:\program files\microsoft visual studio 8\vc\include\iosfwd 34
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\include\iosfwd 34
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\include\iosfwd 34
Error 4 error C2061: syntax error : identifier 'fpos_t' c:\program files\microsoft visual studio 8\vc\include\iosfwd 50
Error 5 error C2146: syntax error : missing ';' before identifier 'seekpos' c:\program files\microsoft visual studio 8\vc\include\iosfwd 65
Error 6 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\include\iosfwd 65
Error 7 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\include\iosfwd 66
Warning 8 warning C4183: 'seekpos': missing return type; assumed to be a member function returning 'int' c:\program files\microsoft visual studio 8\vc\include\iosfwd 68
Error 9 error C2146: syntax error : missing ';' before identifier '_Fpos' c:\program files\microsoft visual studio 8\vc\include\iosfwd 117
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\include\iosfwd 117
Error 11 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\include\iosfwd 117
Error 12 error C2065: 'EOF' : undeclared identifier c:\program files\microsoft visual studio 8\vc\include\iosfwd 510
Thx again...