| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 440 人关注过本帖
标题:请改正
取消只看楼主 加入收藏
lanmoqq123
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2006-12-21
收藏
 问题点数:0 回复次数:0 
请改正

Dim numa, numb, a, b, i, n As Integer
Dim str$, stra$, ch$

Private Sub Cmdjs_Click()
If n = Text1.Text Then Text2.Print str & n & "crroct": a = a + 1
Else: Text2.Print str & n & "error": b = b + 1
Else
End Sub

Private Sub Form_Load()
numa = Int(10 * Rnd + 1)
numb = Int(10 * Rnd + 1)
i = Int(4 * Rnd + 1)
Select Case i
Case 1
ch = "+": str = numa & "+" & numb & "="
Case 2
ch = "-": str = numa & "-" & numb & "="
Case 3
ch = "*": str = numa & "*" & numb & "="
Case 4
ch = "/": str = numa & "/" & numb & "="
End Select
Label1.Caption = str
n = "numa" & ch & "numb" 请给改正,不会!!!
End Sub

Private Sub Cmdtongji_Click()
Text2.Print "___________________________________"
Text2.Print "一共计算" & (a + b) & "道题," & "答对" & a & "道题"
Text2.Print "得分" & a / (a + b) * 100
End Sub

2007-04-17 19:20
快速回复:请改正
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.074552 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved