📄 lucy.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Lucy的难题"
ClientHeight = 5385
ClientLeft = 60
ClientTop = 345
ClientWidth = 8130
LinkTopic = "Form1"
ScaleHeight = 5385
ScaleWidth = 8130
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox TxtS
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6600
Locked = -1 'True
TabIndex = 8
Top = 4800
Width = 1335
End
Begin VB.TextBox TxtB
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2520
MaxLength = 9
TabIndex = 4
Top = 4800
Width = 1215
End
Begin VB.TextBox TxtA
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
MaxLength = 9
TabIndex = 3
Top = 4800
Width = 1215
End
Begin VB.CommandButton Command1
BackColor = &H0080C0FF&
Caption = "计算"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3960
Style = 1 'Graphical
TabIndex = 0
Top = 4800
Width = 975
End
Begin VB.Label Label6
BackColor = &H00C0E0FF&
Caption = $"Lucy.frx":0000
Height = 1455
Left = 240
TabIndex = 9
Top = 3120
Width = 7695
End
Begin VB.Label Label5
Alignment = 2 'Center
BackColor = &H0080FFFF&
Caption = "S的反转数"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5040
TabIndex = 7
Top = 4800
Width = 1455
End
Begin VB.Label Label4
Alignment = 2 'Center
BackColor = &H0080FFFF&
Caption = "B"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2040
TabIndex = 6
Top = 4800
Width = 375
End
Begin VB.Label Label3
Alignment = 2 'Center
BackColor = &H00FFC0FF&
Caption = "第二届""我为程序狂""南开大学程序设计竞赛 (NKPC2)比赛试题(1)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 5
Top = 120
Width = 7695
End
Begin VB.Label Label2
Alignment = 2 'Center
BackColor = &H0080FFFF&
Caption = "A"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 2
Top = 4800
Width = 375
End
Begin VB.Label Label1
BackColor = &H00FFFF80&
Caption = $"Lucy.frx":0108
Height = 2535
Left = 240
TabIndex = 1
Top = 480
Width = 7695
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Not IsNumeric(TxtA.Text) Or Not IsNumeric(TxtB.Text) Then TxtS.Text = "请输入数字": Exit Sub
TxtS.Text = CStr(Val(StrReverse(Format(Val(StrReverse(TxtA.Text)) + Val(StrReverse(TxtB.Text))))))
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -