问题
填空题
下列事件过程的功能是:建立一个名为Datal的随机文件,存放角度值及这些角度的正弦函数值和余弦函数值,角度为1,2,3,…,90。请在空白处填入适当的内容,将程序补充完整。 Private Type Ang K As Inteeer Sinx As Single Cosx As Single End Tyre Dim Ksc As Ane Private Sub Form Click() Dim Y As Single Open“c:\Data1.txt”For Random As #2 Len=10 Y=3.14159/180 For i=1 To 90 Ksc.K=i Ksc=Sinx=Sin(i*Y) Ksc.Cosx=Cos(i*Y) 【15】 Next Close #2 End Sub
答案
参考答案:Put #2,i,Ksc
解析: 根据题意可知在空白行处应填写入数据的随机文件语句,因此,空白行处应填写Put语句。