- //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;
- }
-
相关阅读:
“谈谈如何理解索引?谈谈如何理解事物?”我来带你模拟面试~
spark临时文件较大问题处理
Kafka面试题
七、运算符
ICCV2023人脸识别TransFace论文及代码学习笔记
linux安装UnZip
Pytorch总结九之深度学习计算(2)自定义层、读取和存储、GPU计算
Java中所有关键字简介说明
Qt 数据库的注册和登录功能
【附源码】计算机毕业设计JAVA计算机专业在线学习评估软件-演示录像-
-
原文地址:https://blog.csdn.net/henwy/article/details/126858884