Microsoft VBScript 编译器错误 (0x800A0409)困扰我很久了
/index.asp, line 20, column 24
response.write "鎴戜滑骞虫墜浜?
代码如下:
<%
Function ComputerChoose()
Dim RandomNum
Dim choice
Randomize
RandomNum=int(rnd*3)+1
if RandomNum=1 then
choice="R"
elseif RandomNum=2 then
choice="S"
else
choice="P"
end if
ComputerChoose=choice
End Function
Sub DetermineWinner(playerChoice,computerChoice)
if playerChoice="R" then
if computerChoice="R" then
response.write "<font color=red>石头</font>-----<font color=blue>石头</font><br>"
response.write "我们平手了"
elseif computerChoice="S" then
response.write "<font color=red>石头</font>-----<font color=blue>剪子</font><br>"
response.write "恭喜你,你赢了"
elseif computerChoice="P" then
response.write "<font color=red>石头</font>-----<font color=blue>布</font><br>"
response.write "恭喜你,你赢了"
end if
elseif playerChoice="S" then
if computerChoice="R" then
response.write "<font color=red>剪子</font>-----<font color=blue>石头</font><br>"
response.write "恭喜你,你赢了"
elseif computerChoice="S" then
response.write "<font color=red>剪子</font>-----<font color=blue>剪子</font><br>"
response.write "我们平手了"
elseif computerChoice="P" then
response.write "<font color=red>剪子</font>-----<font color=blue>布</font><br>"
response.write "恭喜你,你赢了"
end if
elseif playerChoice="P" then
if computerChoice="R" then
response.write "<font color=red>布</font>-----<font color=blue>石头</font><br>"
response.write "恭喜你,你赢了"
elseif computerChoice="S" then
response.write "<font color=red>布</font>-----<font color=blue>剪子</font><br>"
response.write "这次我赢了"
elseif computerChoice="P" then
response.write "<font color=red>布</font>-----<font color=blue>布</font><br>"
response.write "我们平手了"
end if
end if
End sub
%>
<html>
<title>石头、剪子、布小游戏</title>
<body>
<center>
玩家:<font color=white>------</font>电脑:<br>
<%
dim player
dim computer
player=request("choice")
if player="P" or player="R" or player="S" then
computer=ComputerChoose()
call DetermineWinner(player,computer)
end if
%>
<hr>
请选择你的武器:
<form action=index.asp method=post>
<input type=radio name=choice value="R">石头<br>
<input type=radio name=choice value="S">剪子<br>
<input type=radio name=choice value="P">布 <br>
<input type=submit value=开战>
</form>
</center>
</body>
</html>
相关推荐
Microsoft VBScript 运行时错误 (0x800A01AD)解决方法
Microsoft VBScript 运行时错误 (0x800A01AD)解决方法
Microsoft_VBScript_编译器错误代码含义大全
编译器错误代码含义大全,认识错误代码,更有效修正错误。
Microsoft VBScript 编译器错误 错误 ‘800a03e9’ 内存不够的解决方法
其实出现Microsoft VBScript 编译器错误 错误 ‘800a03e9’ 内存不够的错误一般是由于访问量过大或攻击出现的,而iis进程回收还没有操作,所有我们手工回收一下就可以了。 iis 》应用程序池 》 找到对应网站的应用程序池 》右键 当然我们可以通过重启iis或重启服务器,在运行里面输入: iisreset /restart 您可能感兴趣的文章:C/C++ 编译器优化介绍C++ 中lambda表达式的编译器实现原理详解 linux c++的编译器g++的基本使用在Mac OS上安装Go语言编译器的方法C/C++编译器GCC
Microsoft VBScript 编译器错误 错误 '800a03e9' 内存不够的解决方法
今天访问后台的时候提示Microsoft VBScript 编译器错误 错误 '800a03e9' 内存不够,通过下面的方法简单修复了下,特分享下,方便需要的朋友
ASP错误大全,常见的vbscript脚本错误
如: MicrosoftVBScript语法错误(0x800A03E9)-->内存不足 MicrosoftVBScript语法错误(0x800A03EA)-->语*错误 MicrosoftVBScript语法错误(0x800A03EB)-->缺少 ':' MicrosoftVBScript语法错误(0x800A03ED)-->缺少 '(' MicrosoftVBScript语法错误(0x800A03EE)-->缺少 ')'


