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

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

錯(cuò)誤: BGI:Graphics not initializd (use 'initgraph')

錯(cuò)誤: BGI:Graphics not initializd (use 'initgraph')

C
元芳怎么了 2023-04-23 13:09:12
#include <graphics.h> main() { int graphdriver=DETECT; int graphmode,x; initgraph(&graphdriver,&graphmode,””); cleardevice(); rectangle(100,20,200,50); bar(100,80,150,180)5 getch(); closegraph(); } 以上是程序,附錯(cuò)誤如下: BGI:Graphics not initializd (use 'initgraph') 如何解決阿,請(qǐng)教。TC下有個(gè)BGI.arc文件
查看完整描述

2 回答

?
胡說(shuō)叔叔

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

圖形函數(shù)裙化錯(cuò)誤了,正確的應(yīng)該如下:
#include <graphics.h> 
main() 

int graphdriver=DETECT; 
int graphmode,x; 
initgraph(&gdriver,&gmode,””);(就這一行) 
cleardevice(); 
rectangle(100,20,200,50); 
bar(100,80,150,180);
getch(); 
closegraph(); 
}

查看完整回答
反對(duì) 回復(fù) 2023-04-26
?
撒科打諢

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

加上真實(shí)的BGI路徑再試。

initgraph(&graphdriver,&graphmode,”c:\\tc\\bgi”);

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

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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