主题:还是画图的问题
File Edit Search Run Compile Debug Tools Options Window Help
╔═[■]════════════════════════════ NONAME00.PAS ══════════════════════════1═[↕]═╗
║ ▲
║{Bar.PAS} ■
║ ▒
║{Sample code for the Bar procedure.} ▒
║ ▒
║uses ▒
║ crt,Graph; ▒
║ ▒
║var ▒
║ Gd, Gm, I, Width: Integer; ▒
║begin ▒
║ clrscr; ▒
║ Gd := Detect; InitGraph(Gd, gm,' '); ▒
║ if GraphResult <> grOk then Halt(1); ▒
║ Width := 10; ▒
║ for I := 1 to 5 do ▒
║ Bar(I*Width, I*10, Succ(I)*Width, 200); ▒
║ ReadLn; ▒
║ CloseGraph; ▒
║end. ▒
║ ▼
╚═☼═════ 8:26 ════◄■▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒►─┘
F1 Help F2 Save F3 Open Alt+F9 Compile F9 Make Alt+F10 Local menu
上面这个程序没有结果,也不报任何错误,我看不到任何图象,
还有,我用画图语句的时候出现这样的错误BGI Error: Graphics not initialized (use InitGraph),我不知道是怎么回事,有谁能指点的吗?谢谢了
这几天天天学画图,可是还没有画出一个图象,难过死了
╔═[■]════════════════════════════ NONAME00.PAS ══════════════════════════1═[↕]═╗
║ ▲
║{Bar.PAS} ■
║ ▒
║{Sample code for the Bar procedure.} ▒
║ ▒
║uses ▒
║ crt,Graph; ▒
║ ▒
║var ▒
║ Gd, Gm, I, Width: Integer; ▒
║begin ▒
║ clrscr; ▒
║ Gd := Detect; InitGraph(Gd, gm,' '); ▒
║ if GraphResult <> grOk then Halt(1); ▒
║ Width := 10; ▒
║ for I := 1 to 5 do ▒
║ Bar(I*Width, I*10, Succ(I)*Width, 200); ▒
║ ReadLn; ▒
║ CloseGraph; ▒
║end. ▒
║ ▼
╚═☼═════ 8:26 ════◄■▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒►─┘
F1 Help F2 Save F3 Open Alt+F9 Compile F9 Make Alt+F10 Local menu
上面这个程序没有结果,也不报任何错误,我看不到任何图象,
还有,我用画图语句的时候出现这样的错误BGI Error: Graphics not initialized (use InitGraph),我不知道是怎么回事,有谁能指点的吗?谢谢了
这几天天天学画图,可是还没有画出一个图象,难过死了