粗心大意的问题

error: redefinition of ‘xxx’ note: previous definition of ‘xxx’ was here

函数定义或者重了 一般是写重了两次。。。。

error:prototype for does not match any in class...

在头文件或者cpp修改参数,忘了在另一个里改            参数表不匹配

error:multiple definition of  ....

一般是 把头文件ifndef 不小心删掉了 或者没写对         头文件多次引用


conversion fromto non-scalar type...

对象和对象指针 变量和变量指针 写混了             一般是malloc或者new的时候出现       

另一个是用explicit抑制隐式转换   参数还符合隐式转换形式

你可能感兴趣的:(C/C++)