在vb里创建一个简单的类calculate,模拟简单的计算器,实现简单的四则运算,求高手!!!急! 100
在vb里创建一个简单的类calculate,模拟简单的计算器,实现简单的四则运算,求高手!!!急!!!...
在vb里创建一个简单的类calculate,模拟简单的计算器,实现简单的四则运算,求高手!!!急!!!
展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏100(财富值+成长值)
1个回答
展开全部
Public Function numjia(numa As Double, numb As Double)
numjia = numa + numb
End Function
Public Function numjian(numa As Double, numb As Double)
numjian = numa - numb
End Function
Public Function numcheng(numa As Double, numb As Double)
numcheng = numa * numb
End Function
Public Function numchu(numa As Double, numb As Double)
If numb = 0 Then
numchu = 0
Else
numjia = numa / numb
End If
End Function
numjia = numa + numb
End Function
Public Function numjian(numa As Double, numb As Double)
numjian = numa - numb
End Function
Public Function numcheng(numa As Double, numb As Double)
numcheng = numa * numb
End Function
Public Function numchu(numa As Double, numb As Double)
If numb = 0 Then
numchu = 0
Else
numjia = numa / numb
End If
End Function
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询