線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1313
推到 Plurk!
推到 Facebook!

求助換行問題

尚未結案
homanfai
一般會員


發表:6
回覆:8
積分:2
註冊:2005-12-04

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-12-08 16:49:44 IP:202.175.xxx.xxx 未訂閱
換行問題:每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

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-12-09 21:38:49 IP:61.219.xxx.xxx 未訂閱
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
系統時間:2024-05-17 14:37:43
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!