网站首页
编程语言
数据库
系统相关
其他分享
编程问答
barWidth
2024-05-15
linux下使用c++模拟下载进度
#include<iostream>#include<iomanip>#include<chrono>#include<thread>voidshowProgressBar(doubleprogress){constintbarWidth=70;std::cout<<"\r[";intpos=static_cast<int>(barWid