#include<bits/stdc++.h> using namespace std; int main() { char choi; cin>>choi; if(choi=='A'||choi=='B') { if(choi=='A') cout<<"food"; else cout<<"paimeng"; } return 0; }
不知道为什么这段代码是对的而外面没有再套一层if-else语句的是错的