VB中提示溢出什么意思,我已经定义i,j,k为double,怎么还是提示溢出Private Sub Command1_Click()n = a + b + cp = d + e + fq = h - gu = (q - n) * (-1) * 1000i = u * d / pj = u * e / pk = u * f / px = CInt(i)y = CInt(j)z = CInt(k)l = d
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/27 10:38:53
![VB中提示溢出什么意思,我已经定义i,j,k为double,怎么还是提示溢出Private Sub Command1_Click()n = a + b + cp = d + e + fq = h - gu = (q - n) * (-1) * 1000i = u * d / pj = u * e / pk = u * f / px = CInt(i)y = CInt(j)z = CInt(k)l = d](/uploads/image/z/10159004-20-4.jpg?t=VB%E4%B8%AD%E6%8F%90%E7%A4%BA%E6%BA%A2%E5%87%BA%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%2C%E6%88%91%E5%B7%B2%E7%BB%8F%E5%AE%9A%E4%B9%89i%2Cj%2Ck%E4%B8%BAdouble%2C%E6%80%8E%E4%B9%88%E8%BF%98%E6%98%AF%E6%8F%90%E7%A4%BA%E6%BA%A2%E5%87%BAPrivate+Sub+Command1_Click%28%29n+%3D+a+%2B+b+%2B+cp+%3D+d+%2B+e+%2B+fq+%3D+h+-+gu+%3D+%28q+-+n%29+%2A+%28-1%29+%2A+1000i+%3D+u+%2A+d+%2F+pj+%3D+u+%2A+e+%2F+pk+%3D+u+%2A+f+%2F+px+%3D+CInt%28i%29y+%3D+CInt%28j%29z+%3D+CInt%28k%29l+%3D+d)
VB中提示溢出什么意思,我已经定义i,j,k为double,怎么还是提示溢出Private Sub Command1_Click()n = a + b + cp = d + e + fq = h - gu = (q - n) * (-1) * 1000i = u * d / pj = u * e / pk = u * f / px = CInt(i)y = CInt(j)z = CInt(k)l = d
VB中提示溢出什么意思,我已经定义i,j,k为double,怎么还是提示溢出
Private Sub Command1_Click()
n = a + b + c
p = d + e + f
q = h - g
u = (q - n) * (-1) * 1000
i = u * d / p
j = u * e / p
k = u * f / p
x = CInt(i)
y = CInt(j)
z = CInt(k)
l = d + x / 1000
m = e + y / 1000
o = f + z / 1000
r = h + l
s = r + m
Text7.Text = Str(x)
Text8.Text = Str(y)
Text9.Text = Str(z)
Text10.Text = Str(l)
Text11.Text = Str(m)
Text12.Text = Str(o)
Text14.Text = Str(r)
Text15.Text = Str(s)
VB中提示溢出什么意思,我已经定义i,j,k为double,怎么还是提示溢出Private Sub Command1_Click()n = a + b + cp = d + e + fq = h - gu = (q - n) * (-1) * 1000i = u * d / pj = u * e / pk = u * f / px = CInt(i)y = CInt(j)z = CInt(k)l = d
是哪一行提示溢出呢?有多种原因造成溢出的,比如
x = CInt(i)
如果i超出Integer的范围(-32768到32767)那么CInt(i)就会溢出,可改为:
x = Int(i)