riggnaros

birthday_header

Apr 22nd, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <iostream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. class birthday {
  9. public:
  10.     void setMonth(string m);
  11.     void setDay(int d);
  12.     void setYear(int y);
  13.     string getMonth();
  14.     int getDay();
  15.     int getYear();
  16.  
  17.     void convertBirthday();
  18.  
  19.  
  20.     //constructor
  21.     birthday(string m = 0, int d = 0, int y = 0);
  22.  
  23. private:
  24.     string month;
  25.     int day;
  26.     int year;
  27. };
Add Comment
Please, Sign In to add comment