Day_23
Comment: With this homework I had a lot of trouble understanding classes. I watched a lot of you tube videos on how classes work, but I feel like everyone had a different way of writing classes. I got David to help me finish the code. He emphasize how important structures are so I better understand them before the final. //ClassDate.cpp #include <iostream> using namespace std; using std::cout; using std::cin; using std::endl; //class definition class Date{ private: // User manipuation. int month; int day; int year; public: // Only the program can change this. Date(); Date(int month,int day,int year); void print_f1(); //format 1. 01/01/2014 void print_f2();...
Comments
Post a Comment