Any reason for prefix in class members?

Hello,
I'm wondering if there is any reason for using prefix in class member's name.

I mean something like this:

1
2
3
4
5
6
7
8
9
10
11
12
class Example
{
 //code....

 //Syntax:
 typename letter_memberName;

 //example:
 int m_value;

 //code...
};


Not only I encountered this in some code I read, but also class creator in my IDE has an option of adding prefix. What's the purpose of prefix?
http://i.imgur.com/YuyNXuD.png

It doesn't actually do anything. You should put it in your code to make it more readable.
Last edited on
Topic archived. No new replies allowed.