shorthand c++ if else statement

后端 未结 4 535
梦毁少年i
梦毁少年i 2020-12-09 17:23

So I\'m just curious if there is a short hand statement to this:

if(number < 0 )
  bigInt.sign = 0;
else
  bigInt.sign = 1;

I see all th

4条回答
提交回复
热议问题