Variable

From ElectroDragon
Revision as of 12:48, 16 February 2020 by Chao (talk | contribs)
Jump to navigation Jump to search

Underscore

  • Typically, the underscore is used in front of member variables in a class, to distinguish them (for the reader) from local variables. The presence or absence of the _ (or __) makes no difference to the compiler.
  • In C++, an underscore usually indicates a private member variable.

REF