0
Module 6 C++
void Test::printValues() { cout << ___ ->___ ; cout << this___ mem2; }
3 ответов
+ 2
cout << this->mem;
cout << this -> mem2;
+ 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
0
void MyClass::printValue() {
cout << this -> mem ;
}