Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. Naming variables:
  2.  
  3. Local variables (variables inside and only applying to one function, statement, or loop) always begin lower-case, and any new words in the name are capitalized.
  4.  
  5. examples:
  6. price
  7. totalPrice
  8. gayAsianPornRightHereBro
  9.  
  10. Global variables (variables declared outside of functions that can be used throughout the code and aren't specific to any function, statement, loop, etc.) always begin capitalized and any new words in the name are also capitalized.
  11. Tax
  12. Income
  13. TotalIncome
  14. Pi
  15. AndrewsAFagBag //Hurrrrrrrrrrrrrrrrrrrrrrrrrrr
  16.  
  17. Member variables (variables declared inside classes/structs) always begin with an underscore and a lowercase letter and new words in the name are capitalized.
  18.  
  19. _memberName
  20. _price
  21. _id
  22. _praiseAllah
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement