全部题库 / VB / 试题详情
单选题 VB
2009-04-10

以下能正确定义数据类型TelBook的代码是
A.Type TelBook
Name As String*10
TelNum As Integer
End Type
B.Type TelBook
Name As String*10
TelNum As Integer
End TelBook
C.Type TelBook
Name String*10
TelNum Integer
End Type TelBook
D.Typedef TelBook
Name String*10
TelNum Integer
End Type

参考答案

A

答案解析

Type语句用于定义包含一个或多个元素的用户自定义的数据类型,其格式如下:
Type类型名
元素1 As数据类型
元素2 As数据类型
……
End Type
所以,答案是A。