
delphi中strtofloat函数做类型转换后出现问题
typeshuzu=array[1..2]ofreal;x:shuzu;x[i]:=strtofloat(edit1.text);运行时出现以下[错误]Unit1.pas...
type
shuzu=array[1..2] of real;
x:shuzu;
x[i]:=strtofloat(edit1.text);运行时出现以下
[错误] Unit1.pas(146): Incompatible types: 'Integer' and 'Real'
应该怎么改 展开
shuzu=array[1..2] of real;
x:shuzu;
x[i]:=strtofloat(edit1.text);运行时出现以下
[错误] Unit1.pas(146): Incompatible types: 'Integer' and 'Real'
应该怎么改 展开
4个回答
展开全部
i的值是多少?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我这里执行了一下,没有问题啊!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
以上代码无错。
你看看unit1的146行是你给出的那几行吗
你看看unit1的146行是你给出的那几行吗
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询