要分配存放如下方阵的数据,正确的且最节约存储空间的数组声明语句是()。 1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9
要分配存放如下方阵的数据,正确的且最节约存储空间的数组声明语句是()。 1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9
A.Dim a(9) As Single
B.Dim a(3, 3) As Single
C.Dim a(-1 To 1, -5 To -3) As Single
D.Dim a(-3 to 1, -5 to 7) As Integer
正确答案:Dim a(-1 To 1, -5 To -3) As Single
Tag:VisualBasic程序设计 方阵 数组
时间:2021-11-29 15:20:41
- 上一篇:执行下面程序段后,输出的结果为()。 Dim a(10, 10) As Integer For i = 2 To 4 For j = 4 To 5 a(i, j) = i * j Next j Next i Print a(2, 5) + a(3, 4) + a(4, 5)
- 下一篇:假定有如下的Sub过程:Sub fun(x As Single, y As Single) t = x x = t / y y = t Mod yEnd Sub在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click() Dim a As Single Dim b As Single a = 6 b = 4 fun a, b Print a, bEnd Sub程序运行后,单击命令按钮,输出结果为()。