【程序32】Press any key to change color(TC实现版本)
2013-04-10 19:28
645 查看
【题目】:Press any key to change color, do you want to try it. Please hurry up!
1.程序分析:
2.程序源代码:
1.程序分析:
2.程序源代码:
#include <conio.h> void main(void) { int color; for (color = 0; color < 8; color++) { textbackground(color); //设置文本的背景颜色,这个只能在TC上实现,VC6.0是不识别的 cprintf("This is color %d\r\n", color); cprintf("Press any key to continue\r\n"); getch();/*输入字符看不见*/ } }
相关文章推荐
- C语言——实例032 Press any key to change color, do you want to try it. Please hurry up!
- Press any key to change color, do you want to try it. Please hurry up!
- 如何让VS.net中的控制台程序出现Press any key to continue字样?
- vs下c++中main _tmain以及控制台程序结束后不出现press any key to continue问题
- 在Java中如何实现“Pless presss any key to continue.”
- 在Java中如何实现“Pless presss any key to continue.”
- 三星笔记本安装系统时报错:image failed to verify with * access denied* press any key to continue.
- 【程序33】学习gotoxy()与clrscr()函数(TC实现版本)
- Rufus安装Win7操作系统出现“press any key to boot from usb”解决方案
- 使用Homebrew管理你的mac开发包( Press RETURN to continue or any other key to abort)
- press<f9> to start GRUB,any other key to boot previous MBR
- NTLDR is missing press any key to restart 的解决方法
- 系统启动时提示“ntldr is missing press any key to reboot”的处理
- NTDLR is missing Press anykey to restart
- NTLDR is missing press any key to restart 的解决方法
- Subject :I need to "press any key to continue"
- Load Error!Press any key to reboot
- 虚拟机开机时出现Press ESC in 5 seconds to skip startup.nsh, any other key to continue问题的解决办法
- Press any key to continue 原来是 这么写出来的
- U盘安装Ubuntu15.04 出现boot failed: please change disks and press a key to continue 错误