=! 的用法

  a=!a;
    cout<<a<<endl;
如果 a为0,则输出1;a为其他值的时候输出的都是0;
posted @ 2021-10-04 16:10  Altwilio  阅读(575)  评论(0)    收藏  举报