⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 032.txt

📁 经典C语言程序设计事例,是一本初学者的C语言程序设计书籍。
💻 TXT
字号:
032
    题目:Press any key to change color, do you want to try it. Please hurry up!

程序源代码:
#include <conio.h>
void main(void)
{
int color;
for (color = 0; color < 8; color++)
 { 
 textbackground(color); /*设置文本的背景颜色*/
 cprintf("This is color %d\r\n", color);
 cprintf("Press any key to continue\r\n");
 getch(); /*输入字符看不见*/
 }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -