Which one of the following operations requires explicit use of a this
pointer?
a) Calling a member function that requires a pointer to that object from
another member function in the same object?
b) Calling a global function that requires a pointer to that object from
a member function?
a****o 发帖数: 686
2
a),b)应该都可以写成需要this的形式。
请问什么是 skillport???
多谢。
但是如果b)不是 “in the same object”,则可以取地址&。而不是this。
【在 c**********e 的大作中提到】 : Which one of the following operations requires explicit use of a this : pointer? : a) Calling a member function that requires a pointer to that object from : another member function in the same object? : b) Calling a global function that requires a pointer to that object from : a member function?
c**********e 发帖数: 2007
3
The answer is b).
Skillport is a training company.