cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
OR function
OR function
Jun 10, 2012 at 10:05pm UTC
mastmi
(1)
Hello there fellow developers, i'm stuck on thinking if C++ has an OR function I.e, if(This or That)Do.this(); don't know if I'm confusing myself with java, would anyone please refresh my memory?
Best regards mastmi.
Jun 10, 2012 at 10:50pm UTC
Moschops
(7244)
In C++, you can do the following:
1
2
if
(This or That) {
// code here }
It's more common to use
1
2
if
(This || That) {
// code here }
Topic archived. No new replies allowed.