topical media & game development
professional-program-09-PtrsToMethodsAndMembers-SpreadsheetCellTest.c
? /
professional-program-09-PtrsToMethodsAndMembers-SpreadsheetCellTest.c
include <SpreadsheetCell.h>
include <iostream>
using namespace std;
int main(int argc, char** argv)
{
SpreadsheetCell myCell;
typedef double (SpreadsheetCell::*PtrToGet) () const;
PtrToGet methodPtr = &SpreadsheetCell::getValue;
cout << (myCell.*methodPtr)() << endl;
return (0);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.