Option Explicit Private Sub Command1_Click() Dim a(4, 4) As Integer, k As Integer Dim i As Integer,

执行下面程序,单击command1按钮,则数组元素a(2,1)的值是——OptionExplicitPrivateSubCommand1_Click()Dima(4,4)... 执行下面程序,单击command1按钮,则数组元素a(2,1)的值是——
Option Explicit

Private Sub Command1_Click()
Dim a(4, 4) As Integer, k As Integer

Dim i As Integer, j As Integer, m As Integer, n As Integer
For m = 1 To 4
j = m
For n = 1 To 4
k = k + 1
a(n, j) = k
j = j - 1

Next n
Next m
For n = 2 To 4
i = n
For m = 4 To n Step -1
k = k + 1
a(i, m) = k
i = i + 1
Next m
Next n
For n = 1 To 4
For m = 1 To 4
Text1 = Text1 & Right(" " & Str(a(n, m)), 3)
Next
Text1 = Text1 & vbCrLf
Next n
End Sub
我也发现调试有问题,可是是原题啊。。。06秋季江苏vb二级考试编程填空第二题
Private Sub Command1_Click()
Dim a(4, 4) As Integer, k As Integer

Dim i As Integer, j As Integer, m As Integer, n As Integer
For m = 1 To m
j = m
For n = 1 To 4
k = k + 1
a(n, j) = k
j = j - 1

Next n
Next m
For n = 2 To 4
i = n
For m = 4 To n Step -1
k = k + 1
a(i, m) = k
i = i + 1
Next m
Next n
For n = 1 To 4
For m = 1 To 4
Text1 = Text1 & Right(" " & Str(a(n, m)), 3)
Next
Text1 = Text1 & vbCrLf
Next n
End Sub
展开
 我来答
匿名用户
2010-10-11
展开全部
你的问题有错误!请查验后再发
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
空nbsp格
2010-10-13
知道答主
回答量:69
采纳率:0%
帮助的人:17.6万
展开全部
头大
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
真心付出啊
2010-10-13
知道答主
回答量:3
采纳率:0%
帮助的人:0
展开全部
ASAD
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式