全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
附:教学资源制作界面:程序运行界面: 3完整程序代码:Dim sum, w, d, L As IntegerPrivate Sub Command1_Click()Dim x, y As Integersum = sum + 1Randomize Timerx = Int(3 * Rnd) + 1y = 1Image4.Picture = Image1.PictureIf x = y Then Label3.Caption = 平局 Image5.Picture = Image1.Picture d = d + 1End IfIf x = 2 Then Label3.Caption = 你赢了! Image5.Picture = Image2.Picture w = w + 1End IfIf x = 3 Then Label3.Caption = 你输了! Image5.Picture = Image3.Picture L = L+ 1End IfText1.Text = sumText2.Text = wText3.Text = dText4.Text = lEnd SubPrivate Sub Command2_Click()Dim x, y As Integersum = sum + 1Randomize Timerx = Int(3 * Rnd) + 1y = 2Image4.Picture = Image2.PictureIf x = y Then Label3.Caption = 平局 Image5.Picture = Image2.Picture d = d + 1End IfIf x = 1 Then Label3.Caption = 你输了! Image5.Picture = Image1.Picture L = L + 1End IfIf x = 3 Then Label3.Caption = 你赢了! Image5.Picture = Image3.Picture w = w + 1End IfText1.Text = sumText2.Text = wText3.Text = dText4.Text =LEnd SubPrivate Sub Command3_Click()Dim x, y As Integersum = sum + 1Randomize Timerx = Int(3 * Rnd) + 1y = 3Image4.Picture = Image3.PictureIf x = y Then Label3.Caption = 平局 Image5.Picture = Image3.Picture d = d + 1End IfIf x = 1 Then Label3.Caption = 你赢了! Image5.Picture = Image1.Picture w = w + 1End IfIf x = 2 Then Label3.Caption = 你输了! Image5.Picture = Image2.Picture L= L+ 1End IfText1.Text = sumText2.Text = wTex
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 广西中考物理5年(2021-2025)真题分类汇编:专题11 电流和电路(原卷版)
- 2026年一级建造师一建建筑案例分析考点重点知识必会简答题200问
- 2025年消防设施操作员之消防设备基础知识真题练习试卷B卷附答案
- 2025年一级建造师之一建水利水电工程实务真题练习试卷B卷附答案
- 文化素材采购协议书模板
- 出资担保协议书模板
- 土地丈量务工协议书
- PAS协议书是什么
- 家居布艺鞋袋新品创新创业项目商业计划书
- 复古与现代女鞋融合创新创业项目商业计划书
- 足球脚背内侧踢球
- 《新污染物治理技术》-课件 第1章 新污染物简介
- 创新联合体建设合同
- 产力异常的课件
- 大学班级干部培训课件
- 炸药库保安员安全培训课件
- 字节运营工作总结
- 医院运营管理培训
- 激光3D打印人形机器人关节结构拓扑优化研究
- 人教版(2024)二年级上册《身体上的尺子》单元测试卷(含解析)
- 叉车司机三级试题+答案
评论
0/150
提交评论