在E盘当前目录文件夹下建立一个名为“Student.txt”,的随机文件,要求用InputBox函数输入5个学生的姓名(StuName)、年级(StuGrade)和年龄(StuAge)。在程序中有下列记录类型和窗体的事件过程,请选择正确的语句完成程序( )。Private Type studentStuName As String*10StuGrade As String*10StuAge As IntegerEnd TypePrivate Sub Form_Click()Dim s As studentOpen c: student.txt For Random As#1 Len=Len(s)For i=1 To 1s.StuName=InputBox( 请输入姓名 )s.StuGrade=InputBox( 请输入年级号 )s.StuAge=Val(InputBox( 请输入年龄 ))______Next iClose#1End Sub
A.Prim#1,s
B.Print#1,1
C.Put#1,,s
D.Put#1,,i