C游戏编程之二:我的最爱车型

#include "stdio.h"
#include "graphics.h"
#include "stdlib.h"
void main()
{
   int gdriver=DETECT,gdmove;
   int car[]={260.144,352,252.144,344,266,336,266,300,253.144,292,266,284,274,284,282,270.144,
    290,270.144,298,284,314,284,322,270.144,330,270.144,338,284,346,284,359.856,292,
    347,300,347,336,360.856,344,352.856,352,
    359.856,384,352.856,392,266,392,253.144,384,260.144,352}; /*我的车外型采集点*/
   initgraph(&gdriver,&gdmove,"c://JMSOFT//DRV");
   setbkcolor(5);
   setwritemode(XOR_PUT);/*异或方式显示*/
   setcolor(YELLOW);
   outtextxy(88,88,"MY MOTHER GIVE ME A CALL AND AT THE SAME TIME I DECIDED TO ");
   outtextxy(88,104,"TAG MY NAME ON THE CAR");
   outtextxy(88,130,"I'M SURE I CAN DO BETTER");
   outtextxy(88,146,"SO I DO...");
   circle(288,338,18);
   circle(324,338,18);
   line(306,284,306,392);
   line(272.412,329,288,338);
   line(303.588,329,288,338);
   line(288,338,288,354);
   drawpoly(25,car);/*画车轮廓*/
   arc(324,329,0,90,9);
   arc(324,329,270,360,9);
   line(324,320,324,356);
   circle(306,300,8);/*车标志开始*/
   sector(306,300,0,90,8,8);
   sector(306,300,180,270,8,8);
   setfillstyle(1,BLUE);
   sector(306,300,90,180,8,8);
   sector(306,300,270,360,8,8);/*车标志完成*/
   outtextxy(88,200,"WHAT DID I SAY ?");
   outtextxy(88,216,"LOOK I HAVE FINICHED IT!");
   outtextxy(88,232,"WHAT A HAPPY TIME!");
   outtextxy(88,248,"REMEMBER MY NAME IS YANG PAN.");
   outtextxy(88,260,"I'M SURE YOU CAN DO IT BETTER THAN ME!");
   outtextxy(88,276,"GOOD LUCK MY FRIEND!");
   outtextxy(88,292,"09/7/26");
   getch();
   closegraph();
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值