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