write,writeln都不行。
showmessage我还不会用它输出变量,只能输出字符串。怎么用它输出字符串+变量,例如VB一样的("i=",i)
有没有像VB的PRINT的,结果直接打印在窗口上,如果有,输出字符串+变量格式是什么?
showmessage我还不会用它输出变量,只能输出字符串。怎么用它输出字符串+变量,例如VB一样的("i=",i)
有没有像VB的PRINT的,结果直接打印在窗口上,如果有,输出字符串+变量格式是什么?
var i:integer;
begin
i:=1;
showmessage(PChar(i));
end;end.
程序说读取违例,为什么?
var i:integer;
begin
i:=1;
showmessage(PChar(i));
end;end.
程序说读取违例,为什么?
procedure TForm1.Button1Click(Sender: TObject);
var i:integer;
begin
i:=1;
showmessage(Inttostr(i));
end;