C# has a tool called StyleCop written by Microsoft which gives you some default rules that I find very useful to end any bickering among teams about code style. The default rules state that all class variables must use the following syntax to refer to class variables:
this.classVariable // C# Default StyleCop Naming Convention
The main alternative in C# is to use a leading underscore instead:
_classVariable // C# Alternative StyleCop Naming Convention
C++ seems to have a large number of naming restrictions which rule out the leading underscore as this is reserved for libraries and operating systems. What about using the 'this' keyword like this, is this a common syntax?
this->classVariable // C++
I don't want this post to descend into a fight about style. I am not asking your opinion on coding style. I just want to know a short concise list of what the most common styles are and if the above example is used commonly, so I can pick one and move on.
UPDATE
I'm not sure why this question was put on hold. Specific questions were asked and we got one very good answer. No opinion was expressed anywhere. Admittedly, this is a touchy subject but I think all went well in the end.