以下能正确定义数据类型Systemlnfo的代码是 ( )。

admin2019-03-14  29

问题 以下能正确定义数据类型Systemlnfo的代码是 (    )。

选项 A、Type Systemlnfo    DiskDrives As String*10    Memory As Long    End Type
B、Type Systemlnfo    DiskDrives As String*10    Memory As Long    End Systemlnfo
C、Type Systemlnfo    DiskDrives String*10    Memory Long    End Type Systemlnfo
D、Typedef Systemlnfo    DiskDriyes String*10    Memory Long    End Type

答案A

解析 本题考查自定义类型的定义。自定义类型要求以Type开始,以End Type结束,在两者之间包含有各个成员的说明,要求字符串定义为定长字符串,同时每个成员的类型以“As”引出。     
转载请注明原文地址:https://kaotiyun.com/show/KoUp777K
0

随机试题
最新回复(0)