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

📄 setback.c

📁 不错书对C++/C程序员很有用的大家不要错过.
💻 C
字号:
#include <conio.h>

void main(void)
 {
   union TextColor {
     struct {
      unsigned char foreground:4;
      unsigned char background:3;
      unsigned char blinking:1;
     } color_bits;
     unsigned char value;
   } colors;
   colors.color_bits.foreground = BLUE;
   colors.color_bits.background = RED;
   colors.color_bits.blinking = 1;

   textattr(colors.value);

   clrscr();
   cprintf("This is the new text colors\n");
 }

⌨️ 快捷键说明

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