编译时的警告如下:
源代码如下:
修改为:
这样警告就可以消除。
参考:http://*.com/questions/5476759/compiler-warning-suggest-parentheses-around-assignment-used-as-truth-value
编译时的警告如下:
源代码如下:
修改为:
这样警告就可以消除。
参考:http://*.com/questions/5476759/compiler-warning-suggest-parentheses-around-assignment-used-as-truth-value