By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,819 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,819 IT Pros & Developers. It's quick & easy.

Syntax Error? Help Plz

P: 2
got a question for anyone that can help......im writin a game program for my nephew, and came across a problem, I wrote,
if((TR=='a')&&(dresser_pick=='b')) || ((TR=='a')&&(dresser_pick2=='b'))
it says i need a ; b4 the || but i no thats not rite, can anyone help, i dont think the syntax is wrong but mayb it is and jus forgettin somethin

THX, ~Andrew~
Jul 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: 4
You are simply missing one parenthesis. Replace the line with following line :

if(((TR=='a')&&(dresser_pick=='b')) || ((TR=='a')&&(dresser_pick2=='b')))
Jul 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.