有如下用户定义类型及操作语句: Type Teacher TNo As String TName AS Strxng IAge As Integer End Type Dim Tea AS Teacher With Tea .TNO="20080001"

admin2010-07-10  30

问题 有如下用户定义类型及操作语句:
Type Teacher
TNo As String
TName AS Strxng
IAge As Integer
End Type
Dim Tea AS Teacher
With Tea
.TNO="20080001"
.TName="张三"
.IAge=32
End With
执行MsgBox Tea.TNaiqle后,消息框的输出结果是______。

选项

答案张三

解析  此题语句先定义一个自定义数据类型,包含编号,变长字符串;姓名,变长字符串;年龄,整型。给此三个变量赋值为.TNo="20080001",.TName=“张三”,.IAge=32,执行MsZBox Tca.TName后,消息框输出 .TNamc变量的值:张三。
转载请注明原文地址:https://kaotiyun.com/show/nIup777K
0

最新回复(0)