Public paste
sample Driver
By: jazy | Date: Sep 21 2007 01:02 | Format: C++ | Expires: never | Size: 453 B | Hits: 1113

  1. #include "myClassTst.h"
  2. #include <iostream>
  3.  
  4.  
  5. int main () {
  6.  
  7. dateType myDate(1,5,1984);
  8.  
  9. std::cout<<"Julian date: "<<myDate.getJulian();
  10.  
  11.  dateType anotherDate;
  12.  int m,d,y;
  13.  anotherDate.setDate(m,d,y);
  14.  anotherDate.printDate();
  15.  anotherDate.incDate();
  16.  anotherDate.printDate();
  17.  cout<<"Days to other date :"<<anotherDate.daysToDate(myDate)<<endl;
  18.  
  19.  
  20. return 0;
  21. }
  22.  
  23. /* Just make a nicer interface and bam.. maybe rename some shizzle */