额
查看原帖
额
1244088
MikeYSYoung__0419楼主2024/1/25 09:10
#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语句的是错的

2024/1/25 09:10
加载中...