神奇的逗号运算符
本文最后更新于 2020年4月7日 下午
cout<<(a,c),此时只会输出c的内容,但是a中的内容也会被计算,例如a=5,b=6,c=7 cout<<((d=a+b),c) 输出为7,d=11
神奇的逗号运算符
https://www.xinhecuican.tech/post/27980.html
本文最后更新于 2020年4月7日 下午
cout<<(a,c),此时只会输出c的内容,但是a中的内容也会被计算,例如a=5,b=6,c=7 cout<<((d=a+b),c) 输出为7,d=11