-
I despise hungarian (for reasons that have been well-covered by salem and others), but I do use an 'm_' prefix for members. This allows for easy differentiation of parameters and members, esp in mutators.
Code:
class X
{
public:
void SetY(int y)
{
m_y = y;
}
private:
int m_y;
};
it's basically shorthand for this->y and it's not actually hungarian, btw.
-
Sorry for the long reply. Been busy programming for awhile. Thanks to all of you. I see that many programmers did what I do. I also only use Hungarian Convention for member variables (m_...), pointers (p...), and constants (c_...). And here I thought that I will get a bad karma if I didn't use a right convention. :D