1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 char a,N,Y; 6 while(1){ 7 8 cout<<"现在正在下雨吗?"<<endl; 9 cout<<"请输入N或Y:"; 10 cin>>a; 11 if(a=='Y') 12 { 13 14 cout<<"现在正在下雨"<<endl; 15 break; 16 } 17 if(a=='N') 18 {cout<<"现在没有下雨"<<endl; 19 break; 20 } 21 } 22 return 0; 23 }
标签:std,11,13,cout,第二天,打卡 From: https://www.cnblogs.com/lijianlongCode13/p/17316703.html