画一头猪

#if _MSC_VER>=1900  
#include "stdio.h"   
_ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned);
#ifdef __cplusplus   
extern "C"
#endif   
FILE* __cdecl __iob_func(unsigned i) {
    return __acrt_iob_func(i);
}
#endif /* _MSC_VER>=1900 */  

#include<graphics.h>
#include<conio.h>

void main()
{
    int ear_left[6] = {170,184,240,101,160,80};
    int ear_right[6] = {470,184,400,101,480,80};
    initgraph(640, 480);
    setbkcolor(WHITE);
    cleardevice();

    setfillcolor(RGB(245, 212, 217));
    setlinecolor(BLACK);
    fillcircle(320, 240, 160);
    fillpolygon((POINT*)ear_left, 3);
    fillpolygon((POINT*)ear_right, 3);

    setfillcolor(RGB(249, 204, 226));
    fillroundrect(220, 240, 420, 360,160,120);

    setfillcolor(RGB(241, 158, 194));
    fillroundrect(260, 260, 300, 340, 80, 60);
    fillroundrect(380, 260, 340, 340, 80, 60);

    setfillcolor(BLACK);
    solidcircle(260, 200, 10);
    solidcircle(380, 200, 10);

    setfillcolor(RGB(242, 156, 177));
    solidcircle(200, 240, 15);
    solidcircle(440, 240, 15);
    _getch();
    closegraph();
}

转载于:https://www.cnblogs.com/NDKY9/p/7615427.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值