关于输出延迟问题(C++)函数

来源:互联网 发布:数据中间件 编辑:程序博客网 时间:2024/06/04 23:21

#include<iostream.h>
#include<windows.h>
void main()
{
 cout<<"\t\t此情可待成追忆"<<endl;
 Sleep(500);       

//Sleep(data)函数在windows.h中,其中data数据可以自行修改(data越大,时间延迟越大,反之越小)
 cout<<"\t\t只是当时已惘然"<<endl;
 Sleep(500);
 cout<<"\t\t淘宝名店欢迎您!"<<endl;
 Sleep(500);
 cout<<"\t\t店址:shop66710170.taobao.com"<<endl;
 Sleep(500);
}

0 0
原创粉丝点击