// Debug5.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "MemoryMadness.h" void doPrint(MemoryMadness x) { x.printData(); } int _tmain(int argc, _TCHAR* argv[]) { MemoryMadness *memArray[10]; for (int i = 0; i < 2; i++) { memArray[i] = new MemoryMadness("Test String"); doPrint(*memArray[i]); } for (int i = 0; i < 2; i++) { doPrint(*memArray[i]); } printf("Press return to end ..."); char c; scanf("%c",&c); return 0; }