(完整word版)江苏省高等院校计算机等级考试vb书后习题答案.pdf
第 6 章 数组习题参考答案6-1 请同学上机运行代码。6-2 Option Explicit Option Base 1 Private Sub Command1_Click()Dim i As Integer,t As Integer Dim a(15)As Integer Randomize For i=1 To 15 a(i)=Int(100*Rnd)Text1=Text1&Str(a(i)Next i For i=1 To 7 t=a(i)a(i)=a(16-i)a(16-i)=t Next i For i=1 To 15 Text2=Text2&Str(a(i)Next i End Sub Private Sub Command2_Click()Text1=Text2=End Sub Private Sub Command3_Click()End End Sub 6-3 Option Explicit Dim a(20)As Integer Private Sub Command1_Click()Dim i As Integer Randomize For i=1 To 20 a(i)=Int(90*Rnd)+10 Text1=Text1&Str(a(i)Next i End Sub Private Sub Command2_Click()Dim i As Integer,j As Integer,f As Boolean Dim n As Integer For i=1 To 20 f=True For j=i+1 To 20 If a(i)=a(j)Then f=False Next j If f=True Then n=n+1 Next i Text2=n End Sub Private Sub Command3_Click()Text1=End Sub Private Sub Command4_Click()End End Sub 6-4 文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2Option Explicit Dim a(20)As Integer Private Sub Command1_Click()Dim i As Integer Randomize For i=1 To 20 a(i)=Int(90*Rnd)+10 Text1=Text1&Str(a(i)Next i End Sub Private Sub Command2_Click()Dim i As Integer,j As Integer,max As Integer Dim n As Integer,w As Integer,p As Integer For i=1 To 20 n=0:p=i For j=1 To 4 If i 20 Then p=p-20 n=n+a(p)Next j If n max Then max=n w=i End If Next i Text2=max Picture1.Print w&-&w+4 End Sub Private Sub Command3_Click()Text1=End Sub Private Sub Command4_Click()End End Sub 6-5 文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2Dim a(5,5)As Integer Private Sub Command1_Click()For i=1 To 4 For j=1 To 5 a(i,j)=Int(9*Rnd)+1 Picture1.Print a(i,j);Next j Picture1.Print Next i End Sub Private Sub Command2_Click()For j=1 To 5 s=0 For i=1 To 4 s=s+a(i,j)Next i Text1=Text1&Str(s)Next j End Sub Private Sub Command3_Click()For i=1 To 4 s=0 For j=1 To 5 s=s+a(i,j)Next j Text2=Text2&Str(s)&Chr(13)&Chr(10)文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2Next i End Sub Private Sub Command4_Click()Text1=Text2=Picture1.Cls End Sub Private Sub Command5_Click()End End Sub 6-6 Option Explicit Private Sub Command1_Click()Dim a(5,5),i As Integer,j As Integer Dim n As Integer,m As Integer,t As Integer Randomize For i=1 To 5 For j=1 To 5-1 a(i,j)=Int(40*Rnd)*2+10 Next j Next i For i=1 To 5 For j=5 To 6-i Step-1 a(i,j)=Int(40*Rnd)*2+11 Next j Next i For i=1 To 5 For j=1 To 5 Text1=Text1&Str(a(i,j)Next j Text1=Text1&vbCrLf 文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2Next i End Sub 6-7 同 6-4 6-8 Dim a(5,5)As Integer Private Sub Command1_Click()Randomize For i=1 To 5 For j=1 To 5 a(i,j)=Int(100*Rnd)+1 Picture1.Print Right(&a(i,j),4);Next j Picture1.Print Next i End Sub Private Sub Command2_Click()For i=1 To 5 For j=1 To 5 s=s+a(i,j)Next j Next i Text1=Str(s)End Sub Private Sub Command3_Click()For i=1 To 5 For j=1 To 5 If i=1 Or j=1 Or i=5 Or j=5 Then 文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2s=s+a(i,j)End If Next j Next i Text2=Str(s)End Sub Private Sub Command4_Click()For i=1 To 5 For j=1 To 5 If i=j Or j=6-i Then s=s+a(i,j)End If Next j Next i Text3=Str(s)End Sub 6-9 Option Explicit Private Sub Command1_Click()Dim a()As Integer,i As Integer,j As Integer Dim max As Integer,k As Integer,f As Boolean Dim n As Integer,m As Integer,t As Integer n=InputBox(输入矩阵的行数:)m=InputBox(输入矩阵的列数:)ReDim a(n,m)Randomize For i=1 To n For j=1 To m a(i,j)=Int(90*Rnd)+10 Text1=Text1&Str(a(i,j)文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2文档编码:CN9Z10J9O3F9 HO5B7A5J5U3 ZX6B8K5V3W2Next j Text1=Text1&vbCrLf Next i For i=1 To n max=0 For j=1 To m If a(i,j)max Then max=a(i,j)t=j End If Next j For k=1 T