若在窗体模块的声明部分声明了如下自定义类型和数组: Private Type rec Code As Integer Caption As String End Type Dim arr(5)As rec

admin2020-02-27  27

问题 若在窗体模块的声明部分声明了如下自定义类型和数组:
Private Type rec
Code As Integer
Caption As String
End Type
Dim arr(5)As rec

选项 A、Print arr.Code(2), arr.Caption(2)
B、Print arr.Code, arr.Caption
C、Print arr(2).Code, arr(2).Caption
D、Print Code(2), Caption(2)

答案C

解析 定义一个自定义类型的数组,数组元素表示为:数组名(下标).成员名,故选C。
转载请注明原文地址:https://kaotiyun.com/show/kDTp777K
0

最新回复(0)