exp03_07.c

来自「《C语言程序设计教程、实验与练习》 源文件下载」· C语言 代码 · 共 23 行

C
23
字号
#include <stdio.h>
#include <conio.h>
main()
{/*this program shows the colorful text. */
 int x,y;

 printf("this program is interesting!\n");
 clrscr();
 gotoxy(30,10);
 textcolor(BLUE);
 textbackground(GREEN);
 cprintf("HOW ARE YOU \n");
 cprintf("Are you OK?\n\r");
 cprintf("123456789");
 gotoxy(5,12);
 textbackground(RED);
 clreol();
 x=35;
 y=20;
 gotoxy(x,y);
 textattr(BLINK+(RED<<4)+YELLOW);
 cprintf("x=%d,y=%d",x,y);
 }

⌨️ 快捷键说明

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