⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v6j04-16.frm

📁 简单的VB课程教学课件适合刚刚接触VB学习的学生学习,绝对是这门课程的精化
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2955
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6960
   LinkTopic       =   "Form1"
   ScaleHeight     =   2955
   ScaleWidth      =   6960
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture2 
      Height          =   2295
      Left            =   3240
      ScaleHeight     =   2235
      ScaleWidth      =   3075
      TabIndex        =   3
      Top             =   120
      Width           =   3135
   End
   Begin VB.CommandButton Command2 
      Caption         =   "方法二"
      Height          =   375
      Left            =   3480
      TabIndex        =   2
      Top             =   2520
      Width           =   1695
   End
   Begin VB.PictureBox Picture1 
      Height          =   2295
      Left            =   120
      ScaleHeight     =   2235
      ScaleWidth      =   2955
      TabIndex        =   1
      Top             =   120
      Width           =   3015
   End
   Begin VB.CommandButton Command1 
      Caption         =   "方法一"
      Height          =   495
      Left            =   480
      TabIndex        =   0
      Top             =   2520
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
' Dim x%, y%, z%
  t1 = Time
  For x = 0 To 33
    For y = 0 To 50
      If 3 * x + 2 * y + 0.5 * _
           (100 - x - y) = 100 Then
          Picture2.Print x, y, 100 - x - y
      End If
    Next y
  Next x
  t2 = Time
  Picture2.Print "方法二化去"; DateDiff("s", t1, t2); _
       "秒时间";
End Sub

Private Sub Command1_Click()
 ' Dim x%, y%, z%
  t1 = Time
  For x = 0 To 33
    For y = 0 To 50
      For z = 0 To 100
        If 3 * x + 2 * y + 0.5 * z = 100 And x + y + z = 100 Then
          Picture1.Print x, y, z
        End If
      Next z
    Next y
  Next x
  t2 = Time
  Picture1.Print "方法一化去"; DateDiff("s", t1, t2); _
       "秒时间";
 End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -