下列程序的功能是:将数据1,2,…,8写入顺序文件Num.txt中,请选择正确的程序段( )。 Private Sub Form_Click() Dim i As Integer Open "Num.txt" For Output As #1 For i=1 To 8 ______ Next i Close #1 End Sub
A: print #1,i
B: input #1,i
C: print #1
D: input #1
A: print #1,i
B: input #1,i
C: print #1
D: input #1
举一反三
- 下列程序的功能是:将数据1,2,…,8写入顺序文件Num.txt中,请补充完整。 Private Sub Form_Click() Dim i As Integer Open "Num.txt" For Output As #1 For i=1 To 8 ______ Next Close#1 End Sub
- 下列程序的功能是:将数据1,1,…,8写入顺序文件Num.txt中,请选择正确的程序段( )。 Private Sub Form_Click() Dim i As Integer Open"Num.txt"For Output As #1 For i=1 To 8 ______ Next i Close #1 End Sub A: print#1,i B: input#1,I C: print#1 D: input#1
- 下列程序的功能是:将数据1,2,…,8写入顺序文件Num.txt中,请补充完整。 Private Sub Form_Click() Dim i As Integer Open"Num.txt”For Output As#1 For i=1 To 8 ______ Next Close#1 End Sub
- 下列程序的功能是:将数据1,2,…,8写入顺序文件Num.txt中,请补充完整。 Private Sub Form_Click() Dim i As Integer Open "Num.txt"For Output As#1 For i=1 To 8 (15) Next Close#1 End Sub
- 下列程序的功能是:将数据1,2,..,8写入顺序文件Num. txt中请补充完整。 Private Sub Form_Click ( ) Dim i As Integer Open "Num. txt" For Output As #1 For i = 1 To 8 【13】 Next Close #1 End Sub