#include <iostream.h>{ char answer; while(1) { cout<<"现在还下雨吗?(Y/N)"<<endl; cin>>answer; if(answer=='Y'||answer=='y') cout<<"现在正在下雨。"<<endl; elseif(answer=='N'||answer=='n') { cout<<"现在没有下雨。"<<endl; break; } else cout<<"错误的输入!(Y/N)"<<endl; }}
这个也不对