C++ if Statement Error: Understanding 'if((a>0)||(a=0))'
The expression "if((a>0)||(a=0))" is incorrect because it uses a single equals sign (=) instead of a double equals sign (==) for comparison. Additionally, the correct syntax for the logical OR operator is "||" and not "|".\n\nThe corrected expression should be:\n\nif((a > 0) || (a == 0))
原文地址: https://www.cveoy.top/t/topic/qAFX 著作权归作者所有。请勿转载和采集!