v6j04-17.frm
来自「简单的VB课程教学课件适合刚刚接触VB学习的学生学习,绝对是这门课程的精化」· FRM 代码 · 共 30 行
FRM
30 行
VERSION 5.00
Begin VB.Form Form1
Caption = "猴子吃桃子问题"
ClientHeight = 1665
ClientLeft = 60
ClientTop = 345
ClientWidth = 3315
LinkTopic = "Form1"
ScaleHeight = 1665
ScaleWidth = 3315
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Dim n%, i%
x = 1 ' 第7天的桃子
Print "第 7 天的桃子数为: 1只"
For i = 6 To 1 Step -1
x = (x + 1) * 2
Print "第"; i; "天的桃子数为:"; x; "只"
Next i
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?