topical media & game development
professional-program-09-SpreadsheetCellMethods-SpreadsheetCellTest.c
? /
professional-program-09-SpreadsheetCellMethods-SpreadsheetCellTest.c
include <SpreadsheetCell.h>
include <iostream>
using namespace std;
int main(int argc, char** argv)
{
string str = SpreadsheetCell::doubleToString(5);
SpreadsheetCell myCell(5);
cout << myCell.getValue() << endl; // OK
myCell.set("6"); // OK
const SpreadsheetCell& anotherCell = myCell;
cout << anotherCell.getValue() << endl; // OK
//anotherCell.set("6"); // Compilation Error!
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.