c言语编程代码五星红旗,飘舞的五星红旗

___________________________________________________________________________________

顺序清单:

#incLU作文题材title=”学生题材” href=”http://www.zibotc.com/”>学生题材d”gr小说题材aphics.h”

#includ”stdlib.h”

voidmain

{intsize;

intdriver四季题材=VGA ;

intmode=VGA HI;

intd[]={60-40,瀑布题材60+65,65-40,50+65,70-40,60+65,80-40,60+65,72-40,67+65,75-40,77+65,

65-40,70+65,55-40,77+65,58-40,67+65,50-40,60+65,60-40,60+65};

inta[]={60-40,60+62,65-40,50+62,70-40,60+62,80-40,60+62,72-40,67+62,75-40,77+62,

65-40,70+62,55-40,77+62,58-40,67+62,50-40,60+62,60-40,60+62};

intb[]={60-40,60+59,65-40,50+59,70-40,60+59,80-40,60+59,72-40,67+59,75-40,77+59,

65-40,70+59,55-40,77+59,58-40,67+59,50-40,60+59,60-40,60+59};

intc[]={60-40,60+56,56-40,50+56,70-40,60+56,80-40,60+56,72-40,67+56,75-40,77+56,

56-40,70+56,55-40,77+56,58-40,67+56,50-40,60+56,60-40,60+56};

inte[]={60-40,60+53,65-40,50+53,70-40,60+53,80-40,60+53,72-40,67+53,75-40,77+53,

65-40,70+53,55-40,77+53,58-40,67+53,50-40,60+53,60-40,60+53};

intdl[]={20-10,150+5,25-10,150+5,27-10,145+5,30-10,150+5,35-10,150+5,30-10,155-2+5,

34-1-10,162-3+5,27-10,155+5,20+1-10,162-3+5,25-10,155-2+5,20-10,155+5};

char*buffer;

initgraph&driver,&mode,”e:win-tc”;

cleardevic;

setcolorRED;

setbkcolorBLUE;

setfillstyl1,WHITE;

rectangl148,100,152,400;

floodfil150,101,RED;

circl150,98,5;

floodfil150,98,RED;

rectangl152,104,156,184;

setfillstyl1,RED;

{setviewport156,0,258,240,1;

clearviewport;

arc180-156,50,247,297影视题材,60;

arc180-156,130,247,297,60;

arc230-156,159,63,113,60;

arc230-156,239,63,113,60;

line258-156,105,258-156,184;/*画五星红旗的边线*/短片题材

setfillstyl1,YELLOW;

fillpoli11,dl;

fillpoli11,d;/*画黄色的五星红旗*/

floodfil65-40,120,RED;

floodfil20,160,RED;/*全部填充五星,边线为红色*/

size=images8,148,27,168;

buffer=mallocsize;

getimag8,148,27,168,buffer;/*保管五星的相关信息*/

putimag8+20,148-3,buffer,1;

putimag8+30+2,130,buffer,1;

putimag8+33,112,buffer,1;/*将缓冲区中保存的其他内容回写到指定的餐厅地址*/

setfillstyl1,RED;

floodfil2,165,RED;/*全部填充红旗旗面为红色*/

delai4000;/*延时*/

clearviewport;/*清屏,再次画第二面位置不同的红旗*/

arc180-156,0,247,285,107;

arc180-156,80,247,285,107;

arc230-156,196,70,105,96;

arc258-156,279,70,105,98;

line258-156,105,258-156,184;

setfillstyl1,YELLOW;

fillpoli11,a;

floodfil65-40,115,RED;

putimag8,148-2,buffer,1;

putimag8+20,148-3-2,buffer,1;

putimag8+30+2,130-2,buffer,1;

putimag8+33,112-2,buffer,1;

setfillstyl1,RED;

floodfil2,165,RED;

delai3000;/*延时后再画第三面不同位置的红旗*/

clearviewport;

rectangl0,104,100,184;

setfillstyl1,YELLOW;

fillpoli11,b;

floodfil65-40,115,RED;

putimag8,148-4,buffer,1;

putimag8+20,148-3-4,buffer,1;

putimag8+30+2,130-4,buffer,1;

putimag8+33,112-4,buffer,1;

setfillstyl1,RED;

floodfil2,165,RED;

delai2000;/*延时后再画第四面红旗*/

clearviewport;

arc180-156,196,75,105,96;

arc180-156,279,75,105,98;

arc230-156,0,257,285,107;

arc230-156,80,257,285,107;

line258-156,105,258-156,184;

setfillstyl1,YELLOW;

fillpoli11,c;

floodfil65-40,120,RED;

putimag8,148-6,buffer,1;

putimag8+20,148-3-6,buffer,1;

putimag8+30+2,130-6,buffer,1;

putimag8+33,112-6,buffer,1;

setfillstyl1,RED;

floodfil2,165,RED;

delai3000;/*延时后画第五面红旗*/

clearviewport;

arc180-156,159,63,113,60;

arc180-156,239,63,113,60;

arc230-156,50,247,297,60;

arc230-156,130,247,297,60;

line258-156,105,258,184;

setfillstyl1,YELLOW;

fillpoli11,e;

floodfil65-40,120,RED;

putimag8,148-8,buffer,1;

putimag8+20,148-3-8,buffer,1;

putimag8+30+2,130-8,buffer,1;

putimag8+33,112-8,buffer,1;

setfillstyl1,RED;

floodfil2,165,RED;

delai3000;

clearviewport;/*整体*/

while!kbhit;/*按恣意键退出动画*/

closegraph;

getch;

原文链接:https://blog.csdn.net/weixin_39940755/article/details/117083760?ops_request_misc=%257B%2522request%255Fid%2522%253A %2522166856496116782388081138%2522%252C%2522scm%2522%253A %252220140713.130102334.pc%255Fblog.%2522%257D&request_id=166856496116782388081138&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-7-117083760-null-null.nonecase&utm_term=%E9%A 2%98%E6%9D%90

未经允许不得转载:题材网 » c言语编程代码五星红旗,飘舞的五星红旗

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏