用delphi写的 报错提示 undeclared identifier:'ShowMessage'这是为什么啊
programecp;{$APPTYPECONSOLE}usesSysUtils;varR1,R2:double;begin{TODO-oUser-cConsoleMai...
program ecp;{$APPTYPE CONSOLE}uses
SysUtils;
var
R1,R2:double;
begin
{ TODO -oUser -cConsole Main : Insert code here }
while true do begin
try
write('enter a real number:');
readln(R1);
write('enter another real number:');
readln(R2);
writeln('the first number divided by the second is:',(R1/R2):5:3);
except
on EInOutError do
ShowMessage('it is not a valid number');
on EZeroDivide do
ShowMessage('can not divide by zero');
end;
end;
end.
报错提示 undeclared identifier:'ShowMessage'这是为什么啊 展开
SysUtils;
var
R1,R2:double;
begin
{ TODO -oUser -cConsole Main : Insert code here }
while true do begin
try
write('enter a real number:');
readln(R1);
write('enter another real number:');
readln(R2);
writeln('the first number divided by the second is:',(R1/R2):5:3);
except
on EInOutError do
ShowMessage('it is not a valid number');
on EZeroDivide do
ShowMessage('can not divide by zero');
end;
end;
end.
报错提示 undeclared identifier:'ShowMessage'这是为什么啊 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询