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

admin2010-06-10  10

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

选项

答案19

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

最新回复(0)