c++ 在console界面 简单实现进度条 正走,然后倒走 很好玩,嘎嘎
2010-02-20 16:34
801 查看
2010-02-21 16:02:15
c++ 在console界面 简单实现进度条 正走,
然后倒走 很好玩,嘎嘎 如题。感谢大家测试。
参考明次的 百度空间 ,点击这里访问。感谢之。 (vc++简单实现进度条效果)
c++ 在console界面 简单实现进度条 正走,
然后倒走 很好玩,嘎嘎 如题。感谢大家测试。
#include <iostream> #include <windows.h> using namespace std; int main() { system("color 2f"); int a=2,m=21,d=1; int p=3; SetConsoleTitle("vc++简单实现倒着走的进度条"); //设置标题 for(int i=0;i<22;i++) { Sleep(30); system("cls"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),4|BACKGROUND_BLUE); //加了些颜色 cout<<"╔═════════════════════╗"<<endl; cout<<"║"; for(int x=20;x>i;x--) { if(x==0) cout<<"█║"; else cout<<"█"; } if(m==0) { for(int r=0;r<22;r++) { Sleep(120); system("cls"); cout<<"╔═════════════════════╗"<<endl; cout<<"║"; SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),3); //加了些颜色 for(int j=0;j<r;j++) { if(j==20) cout<<"█║"; else cout<<"█"; } cout<<endl; cout<<"╚═════════════════════╝"<<endl; d=0; } } if(d) { cout<<endl; cout<<"╚═════════════════════╝"<<endl; m--; } } return 0; }
参考明次的 百度空间 ,点击这里访问。感谢之。 (vc++简单实现进度条效果)
相关文章推荐
- 巧用 mask-image 实现简单进度加载界面
- C++简单实现贪吃蛇小游戏(console)
- c++ 控制台模式下实现的简单进度条
- C++实现文件简单加密与解密(读取文件中的字符,对字符转换,然后写入,完成加密,解密反之)
- 简单实现的自定义圆环进度条,可使用于文件的上传下载图片加载等地方.
- (C++版)链表(三)——实现双向链表的创建、插入、删除等简单操作
- 石头剪刀布小游戏的没有界面的简单实现。
- Android登陆界面的简单实现(登陆背景渐变,密码点击隐藏与显示)
- c++实现一个简单的空间配置器allocator
- C++实现有向权图的基本操作,界面友好,操作方便,运行流畅
- QT实现界面任意位置拖拽-最简单方法
- C++ 简单类中实现各种操作符的重载
- 简单商品搜索界面的实现,流失布局,历史记录,商品展示,商品详情
- 五滴水:使用Ajax+jQuery来实现前端收到的数据在console上显示+简单的主页设计与bootstrap插件实现图片轮播
- C++实现简单日志类
- 各类经典搜索算法(Search Algorithms)的简单介绍和C++实现
- 算法导论 4.1-5 最大子数组问题 线性时间算法 C++简单实现
- C++实现简单源代码计算
- 使用低级界面实现简单的数字输入
- C#程序登陆界面简单实现