1、操作符重载错误
+=、>>等操作符重载出错
解决方法吧重载符后面的内容强制转换为char
如:str += (A[i++]+'0');//报错
str += (char)(A[i++]+'0');//跟正后

2、int的缺省导致的错误
missing type specifier - int assumed. Note: C++ does not support default-int
在所指的错误变量定义前加上int

3、message()的第二个参数不能是void型
'static_cast' : cannot convert from 'void (__thiscall CMyDlg::* )(UINT,LONG)' to 'LRESU
应改为LRESULT型 而返回值一般改为0或1就可以了
注意函数声明那里的返回值不要忘记改了

4、某变量未定义 常见i,j;

posted on 2012-02-16 14:09  知识天地  阅读(253)  评论(0编辑  收藏  举报