- //cool text display thing
- //delay format: 1*delay (seconds)
- #include
- using namespace std;
- void displaytext(string t,double delay,bool end){
- int i=0;
- while (t[i]!='\0'){
- cout<
- usleep(1000000*delay);
- i++;
- }
- if(end)cout<
- }
- int main(){
- displaytext("hello world",0.1,true);
- displaytext(to_string(69),0.05,false);
- return 0;
- }
-
相关阅读:
第9章 IO流、第 10章 多线程
linux常见命令(七)
CentOS7 使用yum安装Nginx (方式一)
各种安卓框布局颜色
《安富莱嵌入式周报》第322期:自制10KV电子负载,史上最详细的电池系列资料,创意洞洞板任意互联,开源USB分析仪,英特尔雷电5, QNX功能安全免费课程
TypeScript(三)面向对象
字符串对齐
java毕业设计滴答拍摄影项目mybatis+源码+调试部署+系统+数据库+lw
DDD.从引进到落地
anaconda pip下载使用不了镜像,报错
-
原文地址:https://blog.csdn.net/henwy/article/details/126858884