setbkcol.c

来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 30 行

C
30
字号
#include <stdio.h>
#include <graphics.h>
#include <conio.h>
void main()
{
int gd=0,gm;
int i;
initgraph(&gd,&gm,"");
setcolor(1);
setfillstyle(1,1);
fillellipse(300,200,80,120);
setcolor(4);
setfillstyle(1,4);
fillellipse(400,100,120,80);
setcolor(2);
setfillstyle(1,2);
fillellipse(200,300,50,80);
for (i=0;i<5;i++)
  {
  getch();
  setbkcolor(1);
  getch();
  setbkcolor(4);
  getch();
  setbkcolor(2);
  }
getch();
closegraph();
}

⌨️ 快捷键说明

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