有如下用户定义类型及操作语句: Type Student SNo As String SName As String IAge As Integer End Type Dim Stu As Student With Stu

admin2013-03-30  24

问题 有如下用户定义类型及操作语句:
Type Student
   SNo As String
   SName As String
   IAge As Integer
End Type
Dim Stu As Student
With Stu
    .SNo="200609001"
    .SName="陈果果"
    .IAge=19
End With
执行MsgBox Stu.IAge 后,消息框输出结果是【  】。

选项

答案19

解析 此题语句先定义一个自定义数据类型,包含学号,变长字符串;姓名,变长字符串;年龄,整型。给此三个变量赋值为.Sno=“00609001”,.SName=“陈果果”,.IAge=19,执行MsgBox Stu.IAge后,消息框输出IAge变量的值:19。
转载请注明原文地址:https://kaotiyun.com/show/J4up777K
0

随机试题
最新回复(0)