form1.frm

来自「使用VB来实现的FIB算法。虽然简单」· FRM 代码 · 共 47 行

FRM
47
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   7380
   ClientLeft      =   120
   ClientTop       =   420
   ClientWidth     =   11055
   LinkTopic       =   "Form1"
   ScaleHeight     =   7380
   ScaleWidth      =   11055
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   1095
      Left            =   9000
      TabIndex        =   0
      Top             =   1680
      Width           =   1455
   End
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 s2 As Long

Dim s1 As Long
Dim s As Long

Dim i As Integer
s1 = 1
s2 = 1

For i = 1 To Text1.Text


s = s1 + s2
s2 = s1
s1 = s
Print s, s1, s2, i

Next i

End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?