天天看點

用VS2010編譯程式iosfwd檔案有大量錯誤

今天用VS2010編譯程式iosfwd檔案有大量錯誤

d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(19): error C2146: syntax error : missing ';' before identifier 'streamoff'

1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(19): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>d:\program files\microsoft visual studio 10.0\vc\include\iosfwd(28): error C2143: syntax error : missing ';' before 'const'

用VS2010編譯程式iosfwd檔案有大量錯誤

仔細檢視程式,發現使用了#include<iostream>和Using namespace std;後來改成了#inlcude<stdio.h>,奇迹出現了

程式好了!哎。。。