如下程序段定义了学生成绩的记录类型,由学号、姓名和三门课程成绩(百分制)组成。 Type Stud no As Integer name As String score(1 to 3) As Single End Type 若对某个学生的各个数据项进行赋值,下列程序段中正确的是( )。
A.Dim S As Stud Stuno=1001StUname=“舒宜”Stuscore=78,88,96
B.Dim S As Studno=1001name=“舒宜”score=78,88,96
C.Dim S As StudStuno=1001Stuname=“舒宜”Stuscore(1)=78StuScore(2)=88Stuscore(3)=96
D.Dim S As Studno=1001name=“舒宜”score(1)=78score(2)=88score(3)=96