首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

为什么出现error C2676: binary '[' : 'QApplication' does not define this operator 异常

2012-03-25 
为什么出现error C2676: binary [ : QApplication does not define this operator 错误?error C2676:

为什么出现error C2676: binary '[' : 'QApplication' does not define this operator 错误?
error C2676: binary '[' : 'QApplication' does not define this operator or a conversion to a type acceptable to the predefined operator

定义: float a[105][3];
错误指示这一行: node->setPos(QPoint(a[0][2],

  a[13][1]));

[解决办法]
代码贴全点吧~
[解决办法]
你这里显然都没有QApplication什么事情,所以虽然错误信息指向这里,错误的原因和这个小片段不一定有关系。可能的原因如:大括号不匹配,少了分号之类的,让这个表达式和其他无关表达式连载一起了

热点排行
Bad Request.