Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if(a < 10)
  2.  
  3. if(a <= 9)
  4.  
  5. float a = 9.0
  6. float b = 10.0
  7. float c = 9.5
  8.  
  9. a < 10 ... true
  10. b < 10 ... false
  11. c < 10 ... true <--- note this
  12.  
  13. a <= 9 ... true
  14. b <= 9 ... false
  15. c <= 9 ... false <--- note this
  16.  
  17. a.compare(value) < 0 ... true if 'a' is smaller than 'value'
  18. a.compare(value) > 0 ... true if 'a' is bigger than 'value'
  19. a.compare(value) == 0 ... true if 'a' is equal to 'value'
  20.  
  21. for (int i = 1; i <= 16; i <<= 1)
  22. {
  23. gz = (~(~gz << i) | pz) & gz; // this is just an example
  24. go = (go << i) & po | go;
  25. }
  26.  
  27. for (int i = 0; i <= x; i++)
  28. {
  29. // anything
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement