| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 925 人关注过本帖
标题:类型转换不成功
取消只看楼主 加入收藏
Button
Rank: 1
等 级:新手上路
帖 子:17
专家分:7
注 册:2009-9-14
结帖率:50%
收藏
 问题点数:0 回复次数:1 
类型转换不成功
程序代码:
var
   ck :integer;
   ckk :double;
begin

   ck := strtoint(edit5.Text) + strtoint(edit6.Text);
   edit1.Text  := inttostr(ck);
   ck := strtoint(edit5.Text) - strtoint(edit6.Text);
   edit2.Text  := inttostr(ck);
   ck := strtoint(edit5.Text) * strtoint(edit6.Text);
   edit3.Text  := inttostr(ck);
   ckk := strtofloat(edit5.Text) div strtofloat(edit6.Text);
   edit4.Text  := floattostr(ck);
   [错误] Unit1.pas(50): Operator not applicable to this operand type
  [致命错误] Project1.dpr(5): Could not compile used unit 'Unit1.pas'  这是怎么一回事?
搜索更多相关主题的帖子: 类型 
2009-09-14 17:50
Button
Rank: 1
等 级:新手上路
帖 子:17
专家分:7
注 册:2009-9-14
收藏
得分:0 
谁晓得怎么回事呢
2009-09-15 10:31
快速回复:类型转换不成功
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015330 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved