Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- using namespace std;
- int main()
- {
- int month;
- int day;
- int year;
- string monthName[12] = {"January", "February","March","April","May","June","July","August","September","October","November","December"};
- cout << "Enter the official Separation date" << endl;
- cout << "below. NOT YOUR TERMINAL LEAVE DATE!" << endl;
- cout << "Enter Month [1-12]: ";
- cin >> month;
- if (month > 12 || month < 1)
- { month = 1; }
- cout << "Enter Day [1-31]: ";
- cin >> day;
- if ( day > 31 || day < 1)
- { day = 1; }
- cout << "Enter Year [2012]: ";
- cin >> year;
- if ( year > 2015 || year < 2001 )
- { year = 2001; }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement