填空题

在E盘当前目录文件夹下建立一个名为“Student.txt’’的顺序文件,要求用InputBox函数输入5个学生的姓名(StuName)、年级(StuGrade)和年龄(StuAge)。
Private Sub Form _ Click( )
【12】
For i=1 To 5
StuName=InputBox("请输入姓名")
StuGrade=InputBox("请输入年级号")
StuAge=InputBox("请输入年龄")
【13】
Next i
【14】
End Sub

【参考答案】

【12】Open"E:\Student.txt" For Output As #1
【13】Write #1,St......

(↓↓↓ 点击下方‘点击查看答案’看完整答案、解析 ↓↓↓)