⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 5-10.frm

📁 本教材为“第2章”、“第4章”、“第7章”、“第8章”、“第10章”和“第12章”配备了附加练习题及答案
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   5490
   ClientLeft      =   60
   ClientTop       =   405
   ClientWidth     =   6930
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   15.75
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   5490
   ScaleWidth      =   6930
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "建立并输出"
      Height          =   735
      Left            =   2520
      TabIndex        =   4
      Top             =   4560
      Width           =   2175
   End
   Begin VB.ListBox List2 
      Height          =   1635
      ItemData        =   "5-10.frx":0000
      Left            =   840
      List            =   "5-10.frx":0002
      TabIndex        =   3
      Top             =   2640
      Width           =   5295
   End
   Begin VB.ListBox List1 
      Height          =   1635
      ItemData        =   "5-10.frx":0004
      Left            =   840
      List            =   "5-10.frx":0006
      TabIndex        =   1
      Top             =   360
      Width           =   5295
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "B="
      Height          =   315
      Left            =   360
      TabIndex        =   2
      Top             =   3240
      Width           =   330
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "A="
      Height          =   315
      Left            =   360
      TabIndex        =   0
      Top             =   960
      Width           =   330
   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()
Dim a(1 To 3, 1 To 6) As Integer
Dim b(1 To 3, 1 To 6) As Integer
Dim st As String
For i = 1 To 3
st = ""
For j = 1 To 6
a(i, j) = i * j
st = st & Format(a(i, j), "@@@@")
Next j
List1.AddItem st
Next i
For i = 1 To 3
st = ""
For j = 1 To 6
If i Mod 2 = 0 Then
b(i, j) = i * 6 + 1 - j
Else
b(i, j) = (i - 1) * 6 + j
End If
st = st & Format(b(i, j), "@@@@")
Next j
List2.AddItem st
Next i
End Sub

⌨️ 快捷键说明

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