C 语言教程 C 练习实例56

robbie · 2022-04-04 13:17:31 · 热度: 7

题目:画图,学用circle画圆形。

程序分析:无。

// Created by www.codercto.com on 15/11/9. // Copyright © 2015年 码农 教程. All rights reserved. //

实例

#include <graphics.h> //VC6.0中是不能运行的,要在Turbo2.0/3.0中 int main() { int driver,mode,i; float j=1,k=1; driver=VGA; mode=VGAHI; initgraph(&driver,&mode,""); setbkcolor(YELLOW); for(i=0;i<=25;i++) { setcolor(8); circle(310,250,k); k=k+j; j=j+0.3; } return 0; }

查看更多 C 语言经典100例

猜你喜欢:
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册