Monday, May 24, 2010

C++, How do I create a pointer to a class member and pass that pointer as a parameter to a function?

C++, How do I create a pointer to a class member and pass that pointer as a parameter to a function?

C++, How do I create a pointer to a class member and pass that pointer as a parameter to a function?
http://www.cprogramming.com/tutorial/les...
Reply:create an obect of the class of pointer type, then pass the perticular member of the class as the parameter to the function only if the member u want to pass is declared as public.


No comments:

Post a Comment