Lawlzes

date.cpp

Oct 29th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // Date.cpp is the Date class function implemetation file.
  2.  
  3. #include "Date.h"
  4.  
  5.  
  6.  
  7.  
  8. void printDate1()
  9.  
  10. {
  11. cout << this->month << "/" << this->day << "/" << this->year << "\n";
  12. }
  13.  
  14. void printDate2()
  15.  
  16. {
  17. cout << Months[month - 1] << " " << day << ", " << year << endl;
  18. }
  19.  
  20. void printDate3()
  21.  
  22. {
  23. cout << day << " " << Months[month - 1] << " " << year << endl;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment