0

Module 6 C++

void Test::printValues() { cout << ___ ->___ ; cout << this___ mem2; }

3rd Feb 2021, 4:20 AM
HENDRA WIJAYA ANJAS HARIANJA
HENDRA WIJAYA ANJAS HARIANJA - avatar
3 ответов
+ 2
cout << this->mem; cout << this -> mem2;
21st Feb 2021, 8:34 AM
Yushi
+ 1
Based on the question you have to access the variables "mem" and "mem2" To access variable using 'this' keyword. this->var Where: mem and mem2 are your variables
3rd Feb 2021, 4:55 AM
noteve
noteve - avatar
0
void MyClass::printValue() { cout << this -> mem ; }
5th Feb 2022, 6:14 PM
Jean-Garnier
Jean-Garnier - avatar