中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-09-24 15:20
47,812 主题排行 / 349,917 发帖 / 今日 0 篇 / 48,274 会员排行
DOS批处理 & 脚本技术(批处理室) » [讨论]Scripting Games
可打印版本  857 / 1
第1楼 electronixtar 发表于 2007-02-18 11:48
铂金会员 发帖 2,672 积分 7,493
[讨论]Scripting Games
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true


Competitors’ Pack
http://download.microsoft.com/download/6/1/d/61d254b4-476c-48e2-a1f1-333d6e46d771/competitors_pack.exe

填空题:
第2楼 slore 发表于 2007-02-19 10:07
铂金会员 发帖 2,478 积分 5,212
i = 0
a = Array("Red", "Orange", "Yellow", "Green", "Blue", "Purple")

Do While i = 0
x = Inputbox("Enter a color: Red, Orange, Yellow, Green, Blue, Or Purple", "Color Selection")

If x = "" Then
Wscript.Echo "Action cancelled"
Exit Do
End If

y = Ucase(x)

For Each b In a
If Ucase(b) = y Then
i = 1
End If
Next

If i = 0 Then
Wscript.Echo "Invalid choice"
Else
Exit Do
End If
Loop

Select Case y
Case "RED"
Wscript.Echo "You entered RED"
Case "ORANGE"
Wscript.Echo "You entered ORANGE"
Case "YELLOW"
Wscript.Echo "You entered YELLOW"
Case "GREEN"
Wscript.Echo "You entered GREEN"
Case "BLUE"
Wscript.Echo "You entered BLUE"
Case "PURPLE"
Wscript.Echo "You entered PURPLE"
End Select
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023