topical media & game development

talk show tell print

professional-program-08-SpreadsheetCellAssign-SpreadsheetCellAssignCopy.c

? / professional-program-08-SpreadsheetCellAssign-SpreadsheetCellAssignCopy.c


  include <SpreadsheetCell.h>
  
  int main(int argc, char** argv)
  {
    SpreadsheetCell myCell(5);
    SpreadsheetCell anotherCell(myCell);
    SpreadsheetCell aThirdCell = myCell;
    anotherCell = myCell; // Calls operator= for anotherCell.
  
    SpreadsheetCell myCell2(5);
    string s1;
    s1 = myCell2.getString();
  
    SpreadsheetCell myCell3(5);
    string s2 = myCell3.getString();
  
    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.