This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 关于delphi的最初级问题,程序挑错。var s1,s2:string;
var t1,t2,code:integer;
tt12:single;
begin
s1:=text1.text;
val(text1.text,t1,code);
tt12:=t1*9/5+32;
t2:=int(tt12); {此行出错}
str(t2,s2);
text2.Text:=s2;
end;
end.
变量类型
-biosfix(BIOSXP.COM);
2002-10-27
{207}
(#821103@0)
-
类型错误,应改为 t2:=trunc(tt12);
-oopsha(oop);
2002-10-27
(#821126@0)
-
费了大半天工夫,终于写了第一个delphi程序,摄氏度和华氏度温度转换程序。文件压缩后157K,用DELPHI7编写,不会改图标。
-biosfix(BIOSXP.COM);
2002-10-27
(#821374@0)
-
Good job, find menu about project, and you will find some tab about change the icon.
-arthurxu(ArthurXu OCP8,9i);
2002-10-27
(#821392@0)
-
按您的指点,改了N次,终于改了图标。还有个问题,这个小计算程序未免体积庞大,是不是可以从设置里remove一些不需要的程序呢?
-biosfix(BIOSXP.COM);
2002-10-28
(#822603@0)
-
Delete the Units in Form's 'uses' section, delete those you dont use. Fox example , dialogs if u's never use any dialog.
-bluebluesky(bluebluesky);
2002-10-28
(#822784@0)
-
按您的指教,删掉了两三个,比原来小了70K,从370变300K,但我觉得两个子程序,简单四则运算,70K足够了。多谢您和其他几位指点。买的书,下载的书讲得都不细致。
-biosfix(BIOSXP.COM);
2002-10-29
(#824015@0)
-
想学技术的话Rolia不是最好的地方,这是茶馆而已,聊聊可以,想从这里学到全面的技术,算了吧
-arthurxu(ArthurXu OCP8,9i);
2002-10-29
(#824912@0)