Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. int number;
  2.  
  3. bool foo (void);
  4. bool footoo (void);
  5.  
  6. number++;
  7. return(rand()%2);
  8.  
  9. if (foo() && footoo())
  10. {
  11. cout << "Two foo true!"
  12. }
  13.  
  14. bool b = foo();
  15. if(foobar() && b)
  16. {
  17. // Stuff
  18. }
  19.  
  20. bool fooRet = foo();
  21. bool footooRet = footoo();
  22.  
  23. if (fooRet && footooRet)
  24. {
  25. cout << "Two foo true!"
  26. }
  27.  
  28. bool fooIsTrue = foo();
  29. bool footooIsTrue = footoo();
  30. if(fooIsTrue && footooIsTrue)
  31. // ...
  32.  
  33. if(somePtr != NULL && somePtr[0] == 1)
  34.  
  35. bool a = foo();
  36. bool b = footoo();
  37. if (a && b)
  38. {
  39. cout << "Two foo true!"
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement