main.cpp:7: error: invalid operands of types ‘’ and ‘int’ to binary ‘operator<<’ #define MIN(a,b) ((a)<(b)?(a):(b))
^

破案了。。。。我好傻。。低级不能再低级的错误====qDebug忘记加括号。。。。。

本文记录了一个关于 qDebug 的使用错误案例,作者在代码中忘记为 qDebug 添加括号导致编译错误。通过这个例子强调了在使用 qDebug 时正确添加括号的重要性。
main.cpp:7: error: invalid operands of types ‘’ and ‘int’ to binary ‘operator<<’ #define MIN(a,b) ((a)<(b)?(a):(b))
^

破案了。。。。我好傻。。低级不能再低级的错误====qDebug忘记加括号。。。。。

1426
6万+
1279
7138

被折叠的 条评论
为什么被折叠?
