Sat Dec 26, 2015 10:50 pm
Yes, in C++ a struct and a class are treated the same. The difference is that by default (if you don't specify an access modifier [public:, private:, protected:]) member functions and variables in a struct are public, while in a class by default member function and variables are private.
However, mostly there is no need to access member variables and functions in C++ using the this pointer. It is common to distinguish member variable using some sort of naming convention (For example using a trailing underscore objstring_) and so there should be no ambiguity between parameters passed into a member function and member variables. The this pointer is used significantly in operator overloading (for instance in the assignment "=" operator).