TEXTATTR.C
资源名称:C.rar [点击查看]
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:0k
源码类别:

界面编程

开发平台:

C/C++

  1. #include <conio.h>
  2. void main(void)
  3.  {
  4.   int color;
  5.   for (color = 1; color < 16; color++)
  6.    {
  7.      textattr(color);
  8.      cprintf("This is color %drn", color);
  9.    }
  10.   textattr(128 + 15);
  11.   cprintf("This is blinkingrn");
  12.  }