Possible Duplicate:
In C++, what are the advantages of using the this
pointer? i.e. Which of the following two snippets is preferred?
class stud
{
int a;
public:
void run(int a) {
stud::a=a;
}
};
OR
class stud {
int a;
public:
void run(int a){
this->a=a;
}
};
Why the 1st case isn't used instead?