紧急求助C语言牛人注释以下程序哈
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/07/07 19:54:20
紧急求助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
![紧急求助C语言牛人注释以下程序哈](/uploads/image/z/14815625-41-5.jpg?t=%E7%B4%A7%E6%80%A5%E6%B1%82%E5%8A%A9C%E8%AF%AD%E8%A8%80%E7%89%9B%E4%BA%BA%E6%B3%A8%E9%87%8A%E4%BB%A5%E4%B8%8B%E7%A8%8B%E5%BA%8F%E5%93%88)
#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