killer1221 2008-10-4 20:12
Dev-Pascal超新手一問
我而家學緊用Dev-Pascal,
點解我打左一段碼之後,
一禁enter就自動close左=="?
呢段碼:
=========================================
program Test;
Var
number :integer;
begin
write('Please input a integer ');
readln(number);
if number > 5 then writeln('the number is large than 5')
else writeln('the number is small than 5')
end.
==========================================
我打完一個整數後,按enter
佢冇顯示the number is large than 5 / the number is small than 5
反而即刻off左=="
點解既><"????????
THZZZZZZZZZZZZZZZ
arararchchch 2008-10-4 20:49
[quote]原帖由 [i]killer1221[/i] 於 4-10-2008 20:12 發表 [url=http://xocat.com/f/redirect.php?goto=findpost&pid=5378254&ptid=219249][img]http://xocat.com/f/images/common/back.gif[/img][/url]
我而家學緊用Dev-Pascal,
點解我打左一段碼之後,
一禁enter就自動close左=="?
呢段碼:
=========================================
program Test;
Var
number :integer;
begin
write('Please i ... [/quote]
正常既...Dev-Pascal唔同其他Pascal,Run完後會自己關閉...
可以係最尾加句 readln;
P.S.樓主是否學生...修讀C.I.T??
[[i] 本帖最後由 arararchchch 於 2008-10-4 20:50 編輯 [/i]]