Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int number;
- bool foo (void);
- bool footoo (void);
- number++;
- return(rand()%2);
- if (foo() && footoo())
- {
- cout << "Two foo true!"
- }
- bool b = foo();
- if(foobar() && b)
- {
- // Stuff
- }
- bool fooRet = foo();
- bool footooRet = footoo();
- if (fooRet && footooRet)
- {
- cout << "Two foo true!"
- }
- bool fooIsTrue = foo();
- bool footooIsTrue = footoo();
- if(fooIsTrue && footooIsTrue)
- // ...
- if(somePtr != NULL && somePtr[0] == 1)
- bool a = foo();
- bool b = footoo();
- if (a && b)
- {
- cout << "Two foo true!"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement