I used to write in VB for quite long and got sticked to a 'With' keyword, which helps to keep the code clean and clear. I wonder if there's a C++ equivalent of this keyword or probably another delicate way to keep order while coding. Sample:
Thanks!Code:class A { public: int a; }; class B { public: A a; int b; }; int main() { B ttt; // With ttt.a // a = 123; // End With }




Reply With Quote