紧急求助C语言牛人注释以下程序哈
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 17:27:58
紧急求助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语言牛人,能不能帮注释下以下画图程序,
#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
#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
#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