📄 cheng.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "时间片轮转调度"
ClientHeight = 7980
ClientLeft = 3210
ClientTop = 2010
ClientWidth = 8640
LinkTopic = "Form1"
ScaleHeight = 7980
ScaleWidth = 8640
Begin VB.CommandButton Command1
Caption = "结果运行"
Height = 495
Left = 6360
TabIndex = 8
Top = 2640
Width = 1815
End
Begin VB.PictureBox Picture1
Height = 4095
Left = 360
ScaleHeight = 4035
ScaleWidth = 7875
TabIndex = 5
Top = 3240
Width = 7935
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 3720
TabIndex = 3
Top = 2160
Width = 1095
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 600
TabIndex = 1
Top = 840
Width = 7455
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "输出结果为:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 7
Top = 2880
Width = 1410
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = $"cheng.frx":0000
Height = 360
Left = 360
TabIndex = 6
Top = 7440
Width = 5220
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "注意:请你以空格分开输入进程的运行时间"
Height = 180
Left = 600
TabIndex = 4
Top = 1440
Width = 3330
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "输入给定的时间片大小:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 360
TabIndex = 2
Top = 2160
Width = 3165
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "输入若干进程的运行时间:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 360
TabIndex = 0
Top = 360
Width = 3465
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim mark(1 To 20) As Integer
Dim aver!, c%, cc%, t
c = Val(Text1.Text)
t = Val(Text2.Text)
aver = 0
For c = 1 To 20
mark(c) = InputBox(c)
m = mark(0)
For aver = 1 To 20
If mark(c) > m Then
m = m / t + 1
If c = m Then
If mark(c) > 0 Then
mark (cc) > t
mark(cc) = mark(cc) - t
Print cc + 1; "-"; c + 1; "-"; t
Else: If mark(cc) > 0 Then Print cc + 1; "-"; c + 1; "-"; mark(cc)
mark(cc) = 0
If cc > 20 Then
Next cc, c, aver
Picture1.Print Tab;
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -