topical media & game development

talk show tell print

professional-program-08-SpreadsheetCellCopyCtor-SpreadsheetCellTest.c

? / professional-program-08-SpreadsheetCellCopyCtor-SpreadsheetCellTest.c


  include <SpreadsheetCell.h>
  include <iostream>
  using namespace std;
  
  int main(int argc, char** argv)
  {
    SpreadsheetCell myCell;
    string name = "heading one";
  
    myCell.setString(name); // copies name
  
    SpreadsheetCell myCell2(4);
    SpreadsheetCell anotherCell(myCell2);
    // anotherCell now has the values of myCell2
  
    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.