Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Windows > Re: HELP WITH C...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 273 of 319
Post > Topic >>

Re: HELP WITH CODEWARRIOR PROGRAM!!!

by rodd@[EMAIL PROTECTED] (Rod Dorman) Apr 19, 2005 at 06:30 PM

In article
<17bb64d9395061dc1cf90d3661e2b22e@[EMAIL PROTECTED]
>,
codeSuckior <cul8r2fast4u@[EMAIL PROTECTED]
> wrote:
>i am in a programming class at my school and am FAILING! i wrote a
program
>to play a game of rock paper scissors and i dont know what the heck is
>wrong with it. the line it is messing up on says
>"if((userchoice.equalsIgnoreCase("rock") && choice = 1) ||
>(userchoice.equalsIgnoreCase("paper") && choice = 2) ||
>(userchoice.equalsIgnoreCase("scissors") && choice = 3));" it is
>highlighting the first & sign and telling me 'Invalid left hand side of
>assignment'. 

You are aware that comparison and assignment are diferent operators
aren't you?

-- 
					-- Rod --
rodd(at)polylogics(dot)com
 




 4 Posts in Topic:
HELP WITH CODEWARRIOR PROGRAM!!!
"codeSuckior" &  2005-04-19 09:58:06 
Re: HELP WITH CODEWARRIOR PROGRAM!!!
rodd@[EMAIL PROTECTED] (  2005-04-19 18:30:16 
Re: HELP WITH CODEWARRIOR PROGRAM!!!
"codeSuckior" &  2005-04-20 09:43:47 
Re: HELP WITH CODEWARRIOR PROGRAM!!!
MW Ron <mwron@[EMAIL P  2005-04-20 11:48:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:31:32 CDT 2008.