[填空題] 下列事件過(guò)程的功能是:建立一個(gè)名為Data1的隨機(jī)文件,存放角度值及這些角度的正弦函數(shù)值和余弦函數(shù)值,角度為1 2,3,…,90。請(qǐng)?jiān)诳瞻滋幪钊脒m當(dāng)
2021-07-20
[填空題] 下列事件過(guò)程的功能是:建立一個(gè)名為Data1的隨機(jī)文件,存放角度值及這些角度的正弦函數(shù)值和余弦函數(shù)值,角度為1 2,3,…,90。請(qǐng)?jiān)诳瞻滋幪钊脒m當(dāng)?shù)膬?nèi)容,將程序補(bǔ)充完整。 Private Type Ang K As Integer Sinx As Single Cosx As Single End TyPe Dim Ksc As Ang 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 T0 90 Ksc.K=i Ksc.Sinx=Sin(i*Y) Ksc.Cosx=Cos(i*Y) ______ Next Close #2 End Sub
正確答案:“C:Data1.txt” For Random As #2 Len=10
參考解析:打開一個(gè)隨機(jī)文件的一般格式為: “Open "文件名稱" For Random As #文件號(hào)[Len=記錄長(zhǎng)度]”
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。