书上碰到一道题,请大家帮忙解答!谢谢

来源:百度知道 编辑:UC知道 时间:2024/05/29 04:17:02
Type employee
num as integer
salary as single
end Type

dim programmer as employee

则下面表示记录变量programmer的成员salary正确的是:
A programmer salary
B .salary
C salary.programmer
D programmer.salary

答案是D
这道题什么意思啊,请大家给我详细讲解一下,谢谢!

type 学生资料
年龄 as integer
性别 as string
姓名 as string
end type
'-------------
dim 小明 as 学生资料
小明.年龄=20
print 小明.年龄

dim 小王 as 学生资料

小王.年龄=21
小王.性别="男"
print 小王.性别

不用解释吧。这样够清楚了。

D
没什么意思VB中,表示自定义变量成员的固定表示方法