原文:error C2297: '*' : illegal, right operand has type 'int *'

include lt iostream gt using namespace std int main int a ,b ,c int d b d amp c cout lt lt d lt lt a lt lt endl return C primer上的练习,在学校机房用vc . 写的,总是出现这个错误 现在才发现,其实是指针定义时没有在最后加上分号。 ...

2019-03-11 20:22 0 797 推荐指数:

查看详情

base operand of '->' has non-pointer type 'const Comple

base operand of '->' has non-pointer type 'const Comple ->操作符前面的操作数类型不是指针类型 错误原因 函数(&对象) { 对象名.成员     //正确方式  对象名->成员     //编译 ...

Fri Mar 01 20:29:00 CST 2019 0 2890
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM