请问C++高手如何解决这些问题啊?!!

来源:百度知道 编辑:UC知道 时间:2024/05/31 07:57:15
1>d:\visual studio2005\vc\platformsdk\include\uuids.h : warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss
1>f:\rtpstudy\ccd_sender\ccdview.cpp(54) : error C2146: syntax error : missing ';' before identifier 'to'
1>f:\rtpstudy\ccd_sender\ccdview.cpp(54) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>f:\rtpstudy\ccd_sender\ccdview.cpp(54) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>f:\rtpstudy\ccd_sender\ccdview.cpp(349) : error C2228: left of '.open' must have class/struct/union
1> type is 'int'
1>f:\rtpstudy\ccd_sender\ccdview.cpp(349) : error C2653: 'ios' : is not a class or namespace name
1>f:\rtp

最前面加上
#include<iostream>;//针对'<<'错误
#include<fstream>;//针对".open",".close"错误
using namespace std;//针对"ios"错误

这些错误你可以直接双击它们,就可以到达那些错误所在的行,错误都有一些说明的.看你的错误,一般都是缺少分号,还有一<< >>左移右移符号的操作有错误.

错误后面就直接写了它所在的行,然后找过去就一般能发现了

你的语法好多啊,我是C语言的初学者,我不会也