第一范文网 - 专业文章范例文档资料分享平台

VisualBasic程序设计—实验报告册-参考答案

来源:用户分享 时间:2025/5/28 22:41:08 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

实验一

VERSION 5.00

Begin VB.Form Form1

Caption = \ ClientHeight = 3195 ClientLeft = 60 ClientTop = 345 ClientWidth = 4680 LinkTopic = \ ScaleHeight = 3195 ScaleWidth = 4680

StartUpPosition = 3 '窗口缺省 Begin VB.CommandButton Command1 Caption = \ Height = 375 Left = 2640 TabIndex = 0 Top = 2400 Width = 1575 End End

Attribute VB_Name = \

Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Print Sqr(8), 8 ^ (1 / 3) End Sub

VERSION 5.00

Begin VB.Form Form1

Caption = \ ClientHeight = 3195 ClientLeft = 60 ClientTop = 345 ClientWidth = 4680 LinkTopic = \ ScaleHeight = 3195 ScaleWidth = 4680

StartUpPosition = 3 '窗口缺省 Begin VB.CommandButton Command1 Caption = \ Height = 495 Left = 3720

TabIndex = 0 Top = 2640 Width = 855 End End

Attribute VB_Name = \

Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Dim i%

For i = 100 To 110 Print i, i ^ (1 / 2) Next End Sub

VERSION 5.00

Begin VB.Form Form1

AutoRedraw = -1 'True Caption = \ ClientHeight = 3195 ClientLeft = 60 ClientTop = 345 ClientWidth = 4680 BeginProperty Font

Name = \楷体_GB2312\ Size = 21.75 Charset = 134 Weight = 400

Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty

ForeColor = &H000000FF& LinkTopic = \ ScaleHeight = 3195 ScaleWidth = 4680

StartUpPosition = 3 '窗口缺省 End

Attribute VB_Name = \

Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False

Private Sub Form_Load() Print: Print

Print \郑州大学在前进!\End Sub

VERSION 5.00

Begin VB.Form Form1

Caption = \ ClientHeight = 3780 ClientLeft = 60 ClientTop = 345 ClientWidth = 6285 LinkTopic = \ ScaleHeight = 3780 ScaleWidth = 6285

StartUpPosition = 3 '窗口缺省 Begin VB.Label Label1

Caption = \蓝天、白云、绿水、青山\ BeginProperty Font

Name = \宋体\ Size = 21.75 Charset = 134 Weight = 400

Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty

ForeColor = &H00FF0000& Height = 975 Left = 600 TabIndex = 0 Top = 1080 Width = 4935 End End

Attribute VB_Name = \

Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False 实验2

VERSION 5.00

Begin VB.Form Form1

Caption = \ ClientHeight = 3090

ClientLeft = 60 ClientTop = 450 ClientWidth = 3615 BeginProperty Font

Name = \宋体\ Size = 12 Charset = 134 Weight = 700

Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty

LinkTopic = \ ScaleHeight = 3090 ScaleWidth = 3615

StartUpPosition = 3 '窗口缺省 Begin VB.CommandButton Command2 Caption = \商\ Height = 375 Left = 1920 TabIndex = 4 Top = 1680 Width = 975 End

Begin VB.CommandButton Command1 Caption = \乘积\ Height = 375 Left = 600 TabIndex = 3 Top = 1680 Width = 975 End

Begin VB.TextBox Text2 Height = 375 Left = 1920 TabIndex = 2 Top = 840 Width = 1095 End

Begin VB.TextBox Text1 Height = 375 Left = 480 TabIndex = 1 Top = 840

Width = 1095 End

Begin VB.Label Label3

BorderStyle = 1 'Fixed Single Caption = \ Height = 375 Left = 2040 TabIndex = 6 Top = 2400 Width = 975 End

Begin VB.Label Label2

Caption = \计算结果为:\ Height = 375 Left = 480 TabIndex = 5 Top = 2400 Width = 1575 End

Begin VB.Label Label1

AutoSize = -1 'True

Caption = \请输入两个数:\ Height = 240 Left = 960 TabIndex = 0 Top = 360 Width = 1785 End End

Attribute VB_Name = \

Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Command1_Click() Label3 = Val(Text1) * Val(Text2) End Sub

Private Sub Command2_Click() Label3 = Val(Text1) / Val(Text2) End Sub

VERSION 5.00

Begin VB.Form Form1

Caption = \

VisualBasic程序设计—实验报告册-参考答案.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c1p5mp6krxb507xn0uyq64mg6283nif00pzx_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top