求VB大神给翻译一下
SubMain()IfCommand="assess"ThenOpen"in.txt"ForInputAs#1LineInput#1,nClose#1Open"out.t...
Sub Main()
If Command = "assess" Then
Open "in.txt" For Input As #1
Line Input #1, n
Close #1
Open "out.txt" For Output As #1
Print #1, func(n)
Close #1
Else
Val(n) = InputBox("请输入大学生数 n:", "Input")
MsgBox func(n)
End If
End Sub
ELSE往上的都是啥意思啊 展开
If Command = "assess" Then
Open "in.txt" For Input As #1
Line Input #1, n
Close #1
Open "out.txt" For Output As #1
Print #1, func(n)
Close #1
Else
Val(n) = InputBox("请输入大学生数 n:", "Input")
MsgBox func(n)
End If
End Sub
ELSE往上的都是啥意思啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询