warning:suggest parentheses around assignment used as truth value
Posted 4nc414g0n
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了warning:suggest parentheses around assignment used as truth value相关的知识,希望对你有一定的参考价值。
错误代码
warning:suggest parentheses around assignment used as truth value
错误原因
我们经常将“==”写为“=”
解决
while(*dest++ = *src++)
改为
while((*dest++ = *src++))
明确地告诉编译器它是"=“而不是”=="
以上是关于warning:suggest parentheses around assignment used as truth value的主要内容,如果未能解决你的问题,请参考以下文章
java https://www.hrwhisper.me/leetcode-remove-invalid-parentheses/ http://blog.csdn.net/qq508618087/
java https://www.hrwhisper.me/leetcode-remove-invalid-parentheses/ http://blog.csdn.net/qq508618087/
java https://www.hrwhisper.me/leetcode-remove-invalid-parentheses/ http://blog.csdn.net/qq508618087/
java https://www.hrwhisper.me/leetcode-remove-invalid-parentheses/ http://blog.csdn.net/qq508618087/
java https://www.hrwhisper.me/leetcode-remove-invalid-parentheses/ http://blog.csdn.net/qq508618087/