#116011 - Dox-999 - Sun Jan 21, 2007 3:29 am
Hi guys, I am new to C++ and I have recently started doing some tutroials, when I work I like to fully understand things before I move on and what I don't understant is how to use "&&" and "||" with integers.
I have done it fine with strings before:
but I want to be able to do lines like this:
How can I do this?
Thanks :)
I have done it fine with strings before:
Code: |
if (password == "hello" || "world") { |
but I want to be able to do lines like this:
Code: |
if (age >= 21 && < 100) { |
How can I do this?
Thanks :)