所有栏目 | 云社区 美国云服务器[国内云主机商]
你的位置:首页 > 云社区 » 正文

vb编写加法运算?

发布时间:2020-04-12 09:14:40

资讯分类:vb  加法  运算  编写  要知道  改成  与众不同
vb编写加法运算?

这个代码中Private Sub Command1_Click()Dim n1, n2 As Integern1 = Val(Text1.Text)n1 = Val(Text2.Text)Label4.Caption = n1 + n2End Sub第4行的n1显然应该是n2要知道一个VB与众不同规定Dim n1,n2 as integer要改成 Dim n1 as integer ,n2 as integer或者Dim n1 as integer Dim n2 as integer

留言与评论(共有 0 条评论)
   
验证码:
Top