Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help needed with "if" statements.
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chimerix




PostPosted: Wed Dec 16, 2009 12:24 pm   Post subject: Help needed with "if" statements.

How do you put two conditions in one if statement?

I am a noob.
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Wed Dec 16, 2009 12:35 pm   Post subject: RE:Help needed with "if" statements.

code:

if (x==5&&y==4)
{
}

or

code:

if (x==5||y==4)
{
}

the first one is both and the second one is or.

I believe that's in your learning guide Jesse Li
chimerix




PostPosted: Wed Dec 16, 2009 8:33 pm   Post subject: RE:Help needed with "if" statements.

Whos Jesse Li
mirhagk




PostPosted: Thu Dec 17, 2009 11:58 am   Post subject: RE:Help needed with "if" statements.

lol never mind theres a kid in my class who was asking my friend that question first period
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: