i was just wondering what takes more cpu cycles accessing a variable trough a class pointer or a 'scoped' variable...
Code:struct XD { int VAL; XD(const int CPY/*, XD* this*/) { /*this->*/VAL = CPY; //from now on shuld either use CPY or VAL. printf("%i", /*this->*/VAL); // does this use more cpu cycles printf("%i", CPY); // than this? } };




Reply With Quote