C 练习实例62

C语言教程评论

C 练习实例62

题目:学习putpixel画点,(在TC中实现)。

程序分析:无。文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili62.html

实例

#include "stdio.h"
#include "graphics.h"
int main()
{
    int i,j,driver=VGA,mode=VGAHI;
    initgraph(&driver,&mode,"");
    setbkcolor(YELLOW);
    for(i=50;i<=230;i+=20)
        for(j=50;j<=230;j++)
            putpixel(i,j,1);
    for(j=50;j<=230;j+=20)
        for(i=50;i<=230;i++)
            putpixel(i,j,1);
}
文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili62.html文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili62.html
运营不易,
感谢支持!
weinxin
我的微信
我的微信公众号
我的微信公众号扫一扫
weinxin
我的公众号
 最后更新:2021-12-7
公式库网
  • 本文由 公式库网 发表于 2021年12月6日20:49:32
  • 转载请务必保留本文链接:https://www.gongshiku.com/html/202112/c-lianxishili62.html

发表评论