topical media & game development
professional-program-10-PolymorphicSpreadsheet-SpreadsheetTest.c
? /
professional-program-10-PolymorphicSpreadsheet-SpreadsheetTest.c
include <iostream>
include <DoubleSpreadsheetCell.h>
include <StringSpreadsheetCell.h>
using namespace std;
int main(int argc, char** argv)
{
SpreadsheetCell* cellArray[3];
cellArray[0] = new StringSpreadsheetCell();
cellArray[1] = new StringSpreadsheetCell();
cellArray[2] = new DoubleSpreadsheetCell();
cellArray[0]->set("hello");
cellArray[1]->set("10");
cellArray[2]->set("18");
cout << "Array values are [" << cellArray[0]->getString() << "," <<
cellArray[1]->getString() << "," <<
cellArray[2]->getString() << "]" << endl;
}
(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.