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

admin2018-09-29  28

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

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

答案A

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

最新回复(0)