vb计算器实训 实验报告.docVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
实训8 实验报告 一、实验目的:制作一个计算器 二、实验进程:完成了十六进制,八进制的代码书写。添加了form3,完成了窗体转化。 三、实验原理与分析: 1、控件属性设置: Form1: 控件 属性 Command1 Caption 0 Command1 Index 0 Command2 Caption + Command2 Index 0 Command3 Caption +/- Command3 Font 加粗 Command4 Caption . Command4 font 加粗 Command5 Caption Backspace Command5 Font 加粗 Command6 Caption C Command6 Font 加粗 Command7 Caption CE Command7 Font 加粗 Command8 Caption Sqrt Command9 Caption 1/x Command10 Caption % Command11 Caption = Command11 Font 加粗 Text1 Text 0. Text1 Alignment 1-right justify Text1 Font 四号 Form1 Caption 计算器 Form1 Maxbutton False Form2: 控件 属性 Command1 Caption 0 Command1 Index 0 Command2 Caption + Command2 Index 0 Command3 Caption +/- Command3 Font 加粗 Command4 Caption . Command4 font 加粗 Command5 Caption Backspace Command5 Font 加粗 Command6 Caption C Command6 Font 加粗 Command7 Caption CE Command7 Font 加粗 Command8 Caption Sqrt Command9 Caption 1/x Command10 Caption % Command11 Caption = Command11 Font 加粗 Command12 caption sin Command12 index 0 Command13 caption A Command13 index 0 Command13 enabled false Text1 Text 0. Text1 Alignment 1-right justify Text1 Font 四号 Form2 Caption 计算器 Frame1 Caption “” Frame2 Caption “” Option1 Caption 十六进制 Option2 Caption 八进制 Option3 caption 十进制 Option4 caption 二进制 Form2 Maxbutton False Form3: 控件 属性 Command1 Caption 确定 Image1 Stretch True Form3 Caption 帮助主题 Form3 Maxbutton False 2、界面图: Form1 Form2: Form3: 3、代码书写: Form1: Option Explicit Dim i As Integer Dim j As Integer Dim m As String Dim x1 As Double Dim x2 As Double Dim y As String Dim op As Integer Dim lastinput As String Private Sub About_Click() Form1.Hide Form3.Show End Sub Private Sub Command1_Click(Index As Integer) 输入数字0-9 If Text1.Text = 0. Or lastinput = = Then Text1.Text = Index lastinput = number Else If Form1.Tag Then If Index = 10 Then Text1.Text = 0. Else Text1.Text = Command1(Index).Caption End If Form1.Tag = Else Text1.Text = Text1.Text Command1(Index).Caption

文档评论(0)

yan698698 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档