![]() |
#2
valentineyzq2007-09-16 10:25
|
#include <iostream>
using namespace std;
int main()
{
char answer;
here:cout<<"现在还下雨吗?(Y/N)"<<endl;
cin>>answer;
if(answer=='Y'||answer=='y')
cout<<"现在正在下雨。"<<endl;
else if(answer=='N'||answer=='n')
cout<<"现在没有下雨。"<<endl;
else goto here;
cin.get();
cin.get();
return 0;
}