第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

可以幫忙調(diào)試一下下面的程序嗎?

可以幫忙調(diào)試一下下面的程序嗎?

C
繁星coding 2023-04-23 17:13:05
幫忙調(diào)試一下下面的程序,謝謝!#include <graphics.h>#include <stdlib.h>#include <stdio.h>#include <conio.h>#include <math.h>main(){int gdriver = DETECT, gmode, errorcode;int a,b;float xm[7][4];initgraph(&gdriver, &gmode, "c:\\tc20\BGI");errorcode = graphresult();if (errorcode != grOk){printf("Graphics error: %s\n", grapherrormsg(errorcode));printf("Press any key to halt:");getch();exit(1);}xm[7][4]={{145,132,155,151},{127,155,177,155},{162,155,127,219},{131,162,172,212},{183,146,184,201},{203,130,203,223},{186,210,203,223},};printf ( "%s \n", "qing shu ru yi dong de ju li" );scanf ( "%d","%d",&a,&b);for (int y=0; y<=10, y++ ){ for (int i=0; i<4; i++ ){for (int j=0; j<7; j++) a[j][i]=+a/10;i++;}for(int i=1; i<4; i++ ){for (int j=0; j<7; j++) xm[j][i]=+b/10;i++;}for (int i=0; i<7;i++) line(xm[i][0],xm[i][1],xm[i][2],xm[i][3]);delay(100);cleardevice();}getch();closegraph();return 0;}
查看完整描述

2 回答

?
慕慕森

TA貢獻(xiàn)1856條經(jīng)驗(yàn) 獲得超17個(gè)贊

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 
#include <math.h> 
main() 
{int gdriver = DETECT, gmode, errorcode; 
int a,b; 
float xm[7][4]; 

initgraph(&gdriver, &gmode, "c:\\tc20\BGI"); 

errorcode = graphresult(); 

if (errorcode != grOk) 

printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); 

xm[7][4]={{145,132,155,151},{127,155,177,155}, 
{162,155,127,219},{131,162,172,212}, 
{183,146,184,201},{203,130,203,223}, 
{186,210,203,223}, 

}; 
printf ( "%s \n", "qing shu ru yi dong de ju li" ); 
scanf ( "%d","%d",&a,&b); 
for (int y=0; y<=10, y++ ) 
{ for (int i=0; i<4; i++ ) 

for (int j=0; j<7; j++) a[j][i]=+a/10; 
i++; 


for(int i=1; i<4; i++ ) 

for (int j=0; j<7; j++) xm[j][i]=+b/10; 
i++; 


for (int i=0; i<7;i++) line(xm[i][0],xm[i][1],xm[i][2],xm[i][3]); 
delay(100); 
cleardevice(); 

getch(); 
closegraph(); 
return 0; 
}
調(diào)試順利通過(guò)

查看完整回答
反對(duì) 回復(fù) 2023-04-26
?
侃侃爾雅

TA貢獻(xiàn)1801條經(jīng)驗(yàn) 獲得超16個(gè)贊

#include <graphics.h> 
#include <stdlib.h> 
#include <stdio.h> 
#include <conio.h> 
#include <math.h> 
main() 

int gdriver = DETECT, gmode, errorcode; 
int i,j,a,b,y; 
float xm[7][4]={ 
{145,132,155,151},{127,155,177,155}, 
{162,155,127,219},{131,162,172,212}, 
{183,146,184,201},{203,130,203,223}, 
{186,210,203,223} 
}; 

initgraph(&gdriver, &gmode, "c:\\tc20\BGI"); 

errorcode = graphresult(); 

if (errorcode != grOk) 

printf("Graphics error: %s\n", grapherrormsg(errorcode)); 
printf("Press any key to halt:"); 
getch(); 
exit(1); 

printf ( "%s \n", "qing shu ru yi dong de ju li" ); 
scanf ( "%d%d",&a,&b); 
for (y=0; y<=10; y++ ) 

for (i=0; i<4; i++ ) 

for (j=0; j<7; j++) xm[j][i]+=a/10; 
i++; 


for(i=1; i<4; i++ ) 

for (j=0; j<7; j++) xm[j][i]+=b/10; 
i++; 


for (i=0; i<7;i++) line(xm[i][0],xm[i][1],xm[i][2],xm[i][3]); 
delay(100000); 
cleardevice(); 

getch(); 

closegraph(); 
return 0; 
}

 


查看完整回答
反對(duì) 回復(fù) 2023-04-26
  • 2 回答
  • 0 關(guān)注
  • 273 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)