emmm...如果有人想玩的话??
作者:互联网
1 #include<bits/stdc++.h> 2 using namespace std; 3 string name; 4 void delay(int second){ 5 time_t start_time, cur_time; 6 time(&start_time); 7 do{ 8 time(&cur_time); 9 }while((cur_time - start_time) < second); 10 } 11 int main(){ 12 cout<<"Hi,nice to meet you,what's your name?"<<endl; 13 cout<<endl; 14 cin>>name; 15 delay(3); 16 cout<<endl; 17 cout<<"Dear "<<name<<"."<<endl; 18 delay(3); 19 cout<<"Remember this:"<<endl; 20 delay(3); 21 cout<<"\u4e0d\u8bb8\u641e\u5a31\u4e50\u6d3b\u52a8\u4e0d\u8bb8\u4e0b\u0051\u0051\uff01\uff01\u000a"<<endl; 22 delay(3); 23 cout<<"\u000a\u000a\u8ba4\u771f\u8bad\u7ec3\uff01\uff01\uff01\u000a\u4e3a\u4e86\u68a6\u60f3\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01"<<endl; 24 delay(3); 25 cout<<"\u7b97\u6cd5\u7ade\u8d5b\u000a"<<endl; 26 delay(3); 27 cout<<"\u83dc\u4e0d\u662f\u539f\u7f6a\uff0c\u61d2\u624d\u662f\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\u000a\u6bd4\u8d5b\u8f93\u4e86\u4e0d\u53ef\u6015\uff0c\u653e\u5f03\u624d\u53ef\u6015\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\u000a\u8d62\u4e86\u522b\u4eba\u4e0d\u91cd\u8981\uff0c\u8d62\u81ea\u5df1\u6700\u91cd\u8981\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01\uff01"<<endl; 28 delay(3); 29 cout<<"\u4eba\u4e00\u6211\u767e\uff01\u4eba\u5341\u6211\u4e07"<<endl; 30 delay(3); 31 cout<<"\u4eba\u4e00\u6211\u767e\uff0c\u4eba\u5341\u6211\u4e07\u3002"<<endl; 32 delay(3); 33 cout<<"\u0047\u006f\u006f\u0064\u0020\u006c\u0075\u0063\u006b\u0021"<<endl; 34 delay(3); 35 }
放在活动室电脑上了233333
标签:...,有人,cur,emmm,second,start,int,time,cout 来源: https://www.cnblogs.com/guaguastandup/p/10993058.html