标题:[求助],老大帮看一下吧!!!
只看楼主
tqtbj
Rank: 1
等 级:新手上路
帖 子:43
专家分:0
注 册:2004-8-1
 问题点数:0 回复次数:1 
[求助],老大帮看一下吧!!!

<% if(numGuess.getSuccess())%> <% { %> Congratulation! You got it And after just<%=numGuess.getNumGuesses()%>tries.<p> <% numGuess.setInit(); %> Care to <a href="numGuess.jsp">try again</a>? <% } %> <% else if(numGuess.getNumGuesses()==0)%> <% { %> Welcome to the Number Guess game.<p> I'm thinking of a number between 1 and 100.<p> <form method="get"> What's your guess?><input type="text" name="guess"> <input type="submit" value="Submit"> </form> <% }else{ %> Good guess,but nope. Try<b><%=numGuess.getHint()%></b> You have made<%=numGuess.getNumGuesses()%>guesses.<p> I'm thinking of a number between 1 and 100.<p> <form method=get> What's your guess?<input type=text name=guess> <input type=submit value="Submit"> </form> <% } %>

怎么总是报错呀

[javac] C:\Tomcat 4.1\work\Standalone\localhost\test\numGuess_jsp.java:81: 'else' without 'if' [javac] else if(numGuess.getNumGuesses()==0) [javac] ^ [javac] C:\Tomcat 4.1\work\Standalone\localhost\test\numGuess_jsp.java:91: 'else' without 'if' [javac] }else{ [javac] ^ [javac] 2 errors

搜索更多相关主题的帖子: 老大 
2004-08-12 01:25
tempnetbar
Rank: 2
等 级:新手上路
威 望:4
帖 子:582
专家分:4
注 册:2004-5-5
得分:0 
重复发帖,所以有点不爽,不想帮你哎~

相信勤能补拙! 喜欢用好用的就永远学不到有用的。
2004-08-12 13:33



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-4173-1-1.html




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

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