高手帮忙啊!!!vb程序

来源:百度知道 编辑:UC知道 时间:2024/05/29 09:34:31
单击按钮1,读入外部数据“in.txt(内有100个随机整数,用逗号分隔)”放入一个数组中(数组下界为1),并在文本框中显示。如果单击按钮2 ,则对这100个整数按从大到小进行排序,并在文本框中显示,然后存入“out.txt”。救急阿,帮帮忙了,万分感谢!
救急了啊,哪位帮帮忙啊

保存为X.frm后运行
'--
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3120
ClientLeft = 60
ClientTop = 420
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3120
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 735
Left = 2400
TabIndex = 2
Top = 2040
Width = 1815
End
Begin VB.TextBox Text1
Height = 270
Left = 240
TabIndex = 1
Top = 240
Width = 3855
End
Begin VB.CommandButton Command1
Caption = "Command1"