求助換行問題 |
尚未結案
|
homanfai
一般會員 發表:6 回覆:8 積分:2 註冊:2005-12-04 發送簡訊給我 |
換行問題:每print一行,都保留一行畀我打字
源碼是:Procedure RandomChinese;
var
Big5File: TextFile;
StrCode:String;
i,j:integer;
Str:String;
begin
Randomize;
AssignFile(Big5File, 'ChineseCode');
Reset(Big5File);
read(Big5File,StrCode);
for i:=1 to ChineseSum do
begin
j:=random(length(StrCode))+1;
if (j mod 2=0) then
Str:=Concat(Str,StrCode[j-1]+StrCode[j])
else
Str:=Concat(Str,StrCode[j]+StrCode[j+1]);
end;
ChineseForm1.ChineseEdit1.Lines.Text:=Str;
end;
|
kgt
高階會員 發表:17 回覆:308 積分:165 註冊:2002-03-13 發送簡訊給我 |
hi homanfai日安:
Writeln procedure-->
Writes to a text file and adds an end-of-line marker
http://delphi.ktop.com.tw/topic.php?topic_id=39611
http://delphi.ktop.com.tw/topic.php?topic_id=21733
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |