#include<bits/stdc++.h> using namespace std; int main() { int a=0,b=0; if(++a==1&&1>2) cout<<"A\n"; cout<<a<<endl; if(1>2&&++b==1) cout<<"B\n"; cout<<b<<endl; }
写一道题的时候发生了奇怪的错误,我发现可能和这段代码的工作原理有关。
为什么这段程序输出是:1 0?