topical media & game development
professional-program-08-SpreadsheetCellCtors-SpreadsheetCellArrayNoDefault.c
? /
professional-program-08-SpreadsheetCellCtors-SpreadsheetCellArrayNoDefault.c
include <SpreadsheetCell.h>
int main(int argc, char** argv)
{
// Comment out these next two lines to test the third line
SpreadsheetCell cells[3]; // FAILS compilation without a default constructor
SpreadsheetCell* myCellp = new SpreadsheetCell[10]; // also FAILS
// This line compiles without a default constructor
SpreadsheetCell cells[3] = {SpreadsheetCell(0), SpreadsheetCell(23),
SpreadsheetCell(41)};
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.