早教吧作业答案频道 -->其他-->
VB的问题求解用VB编了一个很简单的计算器,比如2+2=4,请问用API的WriteProcessMemory怎么去修改内核,使得2+2=3或者5
题目详情
VB的问题 求解用VB编了一个很简单的计算器,比如2+2=4,请问用API的WriteProcessMemory怎么去修改内核,使得2+2=3或者5
▼优质解答
答案和解析
简易计算器程序: Dim shishu As Double Dim yi As Double Dim er As Double Dim fuhao As String ‘按件数组 Private Sub Command1_Click(Index As Integer) din = 0 ‘数字设置: Select Case Index Case 1 To 9 Text1.Text = Val(Text1.Text & Index) ‘ 零的设置: Case 0 If Val(Text1.Text) = 0 Then Text1.Text = Index Else Text1.Text = Val(Text1.Text & "0") End If 点号设置: Case 14 For i = 1 To Len(Text1.Text) If Mid(Text1.Text, i, 1) = "." Then din = 1 Next i If din = 1 Then Else Text1.Text = Text1.Text & "." End If 符号记录: Case 10 fuhao = "+" yi = Val(Text1.Text) Text1.Text = "" Command1(10).Enabled = False Command1(11).Enabled = False Command1(12).Enabled = False Command1(13).Enabled = False Case 11 fuhao = "-" yi = Val(Text1.Text) Text1.Text = "" Command1(10).Enabled = False Command1(11).Enabled = False Command1(12).Enabled = False Command1(13).Enabled = False Case 12 fuhao = "*" yi = Val(Text1.Text) Text1.Text = "" Command1(10).Enabled = False Command1(11).Enabled = False Command1(12).Enabled = False Command1(13).Enabled = False Case 13 fuhao = "/" yi = Val(Text1.Text) Text1.Text = "" Command1(10).Enabled = False Command1(11).Enabled = False Command1(12).Enabled = False Command1(13).Enabled = False End Select End Sub ‘进制函数: Private Function panda(ByVal sel As Single) As String Dim a As String Dim ms As String Do While sel 0 a = Str(sel Mod 2) sel = sel \ 2 ms = a & ms Loop panda = ms End Function
看了VB的问题求解用VB编了一个很...的网友还看了以下:
某工厂第一季度生产甲,乙两种机器共480台,改进技术后,计划第二季度生产这两种机器共544台,其中 2020-04-07 …
如果2X=Y,那么X和Y()比例;如果圆的周长一定,那么圆的直径和圆周率()比例如果2X=Y,那么 2020-04-27 …
求教!关于声母韵母的问题.急.替),开头的音节,根据拼写规则,是在i,u,"u,前加y,w,有时则 2020-06-08 …
数学问题1.下面的比中能与3:8组成比例的是()A3.5:6B1.5:4C6:1.52.如果a/b 2020-06-11 …
数学单选题急急急在线等1)把25*4=50*2改写成比例是()A.25:4=50:2B.25:2= 2020-07-13 …
旋转式变阻器(如图所示)与滑动变阻器相比,外形不同,但原理都是通过改变接入电路的导体的来改变其连入 2020-08-02 …
(1)将比例式a:b=c:d中的比例内项改写成比例外项所得的比例式是.(2)已知比例式5分之2=y 2020-08-02 …
关于比例选段的题,已知mn=ab,将它改写成比例式,使n放在第四比例项是已知a=5m,b=5cm, 2020-08-03 …
1.若x比2=y比3=z比5,则x+y+z比x=2.已知线段a,b,c,且x比2=y比3=z比4,( 2020-11-01 …
根据条件求x比Y比Z详细点要知道怎么做X比y=2分之一比3分之一,y比Z=5分之1比6分之一2.X比 2020-11-08 …