sample Driver
By: jazy | Date: Sep 21 2007 01:02 | Format: C++ | Expires: never | Size: 453 B | Hits: 1169
- #include "myClassTst.h"
- #include <iostream>
- int main () {
- dateType myDate(1,5,1984);
- std::cout<<"Julian date: "<<myDate.getJulian();
- dateType anotherDate;
- int m,d,y;
- anotherDate.setDate(m,d,y);
- anotherDate.printDate();
- anotherDate.incDate();
- anotherDate.printDate();
- cout<<"Days to other date :"<<anotherDate.daysToDate(myDate)<<endl;
- return 0;
- }
- /* Just make a nicer interface and bam.. maybe rename some shizzle */
Latest pastes
2 days ago
2 days ago
6 days ago
7 days ago
7 days ago