2017年六年級數學(xué)暑假生活指導練習及答案
◇[DELPHI]在FORM或其他容器上畫(huà)線(xiàn)

var x,y:array [0..50] of integer;
canvas.pen.color:=clred;
canvas.pen.style:=psDash;
form1.canvas.moveto(trunc(x[i]),trunc(y[i]));
form1.canvas.lineto(trunc(x[j]),trunc(y[j]));
◇[DELPHI]字符串列表使用
var tips:tstringlist;
tips:=tstringlist.create;
tips.loadfromfile(''filename.txt'');
edit1.text:=tips[0];
tips.add(''last line addition string'');
tips.insert(1,''insert string at NO 2 line'');
tips.savetofile(''newfile.txt'');
tips.free;
【六年級數學(xué)暑假生活指導練習及答案】相關(guān)文章:
- 相關(guān)推薦