Article View: de.comp.lang.c++
Article #774pointer to member function
From: stolar
Date: Sun, 12 Nov 1995 00:54
Date: Sun, 12 Nov 1995 00:54
23 lines
952 bytes
952 bytes
This is beginner's question. I am hoping that someone could mail me the answer or dirrect me to a web page where I coul find the answer. This is my problem: I have two classes X and Y. In class X there is a function Print() and function Pass( pointerToPrint ) In class Y is a function GetPrint( pointerToPrint ) , and pointer variable pnt. I don't know how to do the following: In X::Pass() I want to do the call Y.GetPrint(pointerToPrint) In Y assign pointerToPrint to pnt I would appreciate any help in this matter You can E-mail me at stolar@u.washington.edu Chris
Technical Details
Message-ID:
<483gme$dna@nntp1.u.washington.edu>Path:
arc1-ca.pugleaf.net!news.u.washington.edu!rootShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.u.washington.edu!root From: stolar@u.washington.edu Newsgroups: de.comp.lang.c++ Subject: pointer to member function Date: Sun, 12 Nov 1995 00:54:31 GMT Organization: University of Washington Message-ID: <483gme$dna@nntp1.u.washington.edu> NNTP-Posting-Host: cs115-2.u.washington.edu X-Newsreader: Forte Free Agent 1.0.82