紧急求助C语言牛人注释以下程序哈求助C语言牛人,能不能帮注释下以下画图程序,#include #include void polygone();void block();main(){ int i,j,a,length,n,theta,x=100,y=350;int gdriver=DETECT,gmode;printf("Input length,n,thet

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 08:39:41
紧急求助C语言牛人注释以下程序哈求助C语言牛人,能不能帮注释下以下画图程序,#include #include void polygone();void block();main(){ int i,j,a,length,n,theta,x=100,y=350;int gdriver=DETECT,gmode;printf(

紧急求助C语言牛人注释以下程序哈求助C语言牛人,能不能帮注释下以下画图程序,#include #include void polygone();void block();main(){ int i,j,a,length,n,theta,x=100,y=350;int gdriver=DETECT,gmode;printf("Input length,n,thet
紧急求助C语言牛人注释以下程序哈
求助C语言牛人,能不能帮注释下以下画图程序,
#include
#include
void polygone();
void block();
main()
{ int i,j,a,length,n,theta,x=100,y=350;
int gdriver=DETECT,gmode;
printf("Input length,n,theta:");
scanf("%d,%d,%d",&length,&n,&theta);
initgraph(&gdriver,&gmode,"");
cleardevice();
setbkcolor(9);
setcolor(4);
a=length/4;
for (i=1;i

紧急求助C语言牛人注释以下程序哈求助C语言牛人,能不能帮注释下以下画图程序,#include #include void polygone();void block();main(){ int i,j,a,length,n,theta,x=100,y=350;int gdriver=DETECT,gmode;printf("Input length,n,thet
#include
#include
/* Declare function prototype.*/
void polygone();
void block();
main()
{
/* Declare variables.*/
int i,j,a,length,n,theta,x=100,y=350;
/* Request auto detection */
int gdriver=DETECT,gmode;
/* Get user input.*/
printf("Input length,n,theta:");
scanf("%d,%d,%d",&length,&n,&theta);
/* initialize graphics mode */
initgraph(&gdriver,&gmode,"");
/* clear the screen */
cleardevice();
setbkcolor(9);
setcolor(4);
a=length/4;
for (i=1;i