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

📄 form3.frm

📁 用VB软件实现的一些常用的矩阵运算
💻 FRM
📖 第 1 页 / 共 4 页
字号:
         TabIndex        =   50
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   42
         Left            =   6000
         TabIndex        =   49
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   41
         Left            =   5520
         TabIndex        =   48
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   40
         Left            =   5040
         TabIndex        =   47
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   39
         Left            =   4560
         TabIndex        =   46
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   38
         Left            =   4080
         TabIndex        =   45
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   37
         Left            =   3600
         TabIndex        =   44
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   36
         Left            =   3120
         TabIndex        =   43
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   35
         Left            =   2640
         TabIndex        =   42
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   34
         Left            =   2160
         TabIndex        =   41
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   33
         Left            =   1680
         TabIndex        =   40
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   32
         Left            =   1200
         TabIndex        =   39
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   31
         Left            =   720
         TabIndex        =   38
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   30
         Left            =   240
         TabIndex        =   37
         Top             =   960
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   29
         Left            =   6960
         TabIndex        =   36
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   28
         Left            =   6480
         TabIndex        =   35
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   27
         Left            =   6000
         TabIndex        =   34
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   26
         Left            =   5520
         TabIndex        =   33
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   25
         Left            =   5040
         TabIndex        =   32
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   24
         Left            =   4560
         TabIndex        =   31
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   23
         Left            =   4080
         TabIndex        =   30
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   22
         Left            =   3600
         TabIndex        =   29
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   21
         Left            =   3120
         TabIndex        =   28
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   20
         Left            =   2640
         TabIndex        =   27
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   19
         Left            =   2160
         TabIndex        =   26
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   18
         Left            =   1680
         TabIndex        =   25
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   17
         Left            =   1200
         TabIndex        =   24
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   16
         Left            =   720
         TabIndex        =   23
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   15
         Left            =   240
         TabIndex        =   22
         Top             =   600
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   14
         Left            =   6960
         TabIndex        =   21
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   13
         Left            =   6480
         TabIndex        =   20
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   12
         Left            =   6000
         TabIndex        =   19
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   11
         Left            =   5520
         TabIndex        =   18
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   10
         Left            =   5040
         TabIndex        =   17
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   9
         Left            =   4560
         TabIndex        =   16
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   8
         Left            =   4080
         TabIndex        =   15
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   7
         Left            =   3600
         TabIndex        =   14
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   6
         Left            =   3120
         TabIndex        =   13
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   5
         Left            =   2640
         TabIndex        =   12
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   4
         Left            =   2160
         TabIndex        =   11
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   3
         Left            =   1680
         TabIndex        =   10
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   2
         Left            =   1200
         TabIndex        =   9
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   1
         Left            =   720
         TabIndex        =   8
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox Text1 
         Height          =   285
         Index           =   0
         Left            =   240
         TabIndex        =   7
         Top             =   240
         Width           =   375
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "结束"
      Height          =   375
      Left            =   7440
      TabIndex        =   1
      Top             =   7080
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "上一步"
      Height          =   375
      Left            =   6000
      TabIndex        =   0
      Top             =   7080
      Width           =   1215
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Height          =   195
      Left            =   5640
      TabIndex        =   6
      Top             =   600
      Width           =   45
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "运算法选取"
      Height          =   195
      Left            =   1080
      TabIndex        =   3
      Top             =   600
      Width           =   900
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Form2.Show
Unload Me
End Sub

Private Sub Command2_Click()

Unload Me
Unload Form2
Unload Form1
Unload frmLogin
End Sub

Private Sub Label4_Click()

End Sub

Private Sub Command3_Click()
If Combo1.Text = "加法" Then
Label2.Caption = "A" & " + " & "B"
For i = 0 To t1 - 1
 For j = 0 To t2 - 1
 c(i, j) = a(i, j) + b(i, j)
 Text1(i * 15 + j).Text = c(i, j)
 Text1(i * 15 + j).Visible = True
 Next
 Next
End If
If Combo1.Text = "A减B" Then
Label2.Caption = "A" & " -" & "B"
For i = 0 To t1 - 1
 For j = 0 To t2 - 1
 c(i, j) = a(i, j) - b(i, j)
 Text1(i * 15 + j).Text = c(i, j)
 Text1(i * 15 + j).Visible = True
 Next
 Next
End If
If Combo1.Text = "B减A" Then
Label2.Caption = "A" & " -" & "B"
For i = 0 To t1 - 1
 For j = 0 To t2 - 1
 c(i, j) = b(i, j) - a(i, j)
 Text1(i * 15 + j).Text = c(i, j)
 Text1(i * 15 + j).Visible = True
 Next
 Next
End If
If Combo1.Text = "乘" Then
Label2.Caption = "A" & " X" & "B"
For i = 0 To t1 - 1
 For j = 0 To t4 - 1
 c(i, j) = 0
 For t = 0 To t4 - 1
 c(i, j) = c(i, j) + a(i, t) * b(t, j)
 Next
 Text1(i * 15 + j) = c(i, j)
 Next
 Next
For i = 0 To t1 - 1
 For j = 0 To t4 - 1
 Text1(i * 15 + j).Visible = True
Next
Next
End If
If Combo1.Text = "转置A" Then
Label2.Caption = "A的转置矩阵"
For i = 0 To t1 - 1
 For j = 0 To t2 - 1
c(j, i) = a(i, j)
 Next
 Next
For i = 0 To t2 - 1
 For j = 0 To t1 - 1
 Text1(i * 15 + j).Text = c(i, j)
 Text1(i * 15 + j).Visible = True
Next
Next
End If
If Combo1.Text = "转置B" Then
Label2.Caption = "B的转置矩阵"
For i = 0 To t1 - 1
 For j = 0 To t2 - 1
 c(j, i) = b(i, j)
 Next
 Next
For i = 0 To t2 - 1
 For j = 0 To t1 - 1
 Text1(i * 15 + j).Text = c(i, j)
 Text1(i * 15 + j).Visible = True
Next
Next

End If
End Sub

Private Sub Form_Load()
For i = 0 To 14
 For j = 0 To 14
 Text1(i * 15 + j).Visible = False

 Next
 Next
End Sub

⌨️ 快捷键说明

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