Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> //Includes iostream for io stuff like cin and cout
- #include <fstream> //Includes fstream for file manipulation
- #include <iomanip> //Includes iomanip for io beatification
- #include <string> //Includes strings for strings
- #include <windows.h>//Includes Windows.h for system functions
- using namespace std;
- struct date
- {
- int day;
- string month;
- int year;
- };
- struct time
- {
- int hour;
- int minute;
- int second;
- bool am;
- };
- struct Event
- {
- date DATE;
- time TIME;
- string name;
- string note;
- bool active;
- };
- void showOptions()
- {
- cout << "1: NEW EVENT." << endl;
- cout << "2: DELETE EVENT" << endl;
- cout << "3: DISPLAY SCHEDULE" << endl;
- cout << "4: EXIT" << endl;
- }
- void AddEvent()
- {
- }
- void DeleteEvent()
- {
- }
- void DisplaySchedule()
- {
- }
- void Exit(){
- }
- void Handler(int x)
- {
- if(x == 1){
- AddEvent();
- }
- else if(x == 2){
- DeleteEvent();
- }
- else if(x == 3){
- DisplaySchedule();
- }
- else if(x == 4){
- Exit();
- }
- else{
- cout << "You input a value that did not work." << endl;
- }
- }
- int main(){
- int choice;
- int numEvents = 0;
- showOptions();
- cout <<"What is your choice....";
- cin >> choice;
- Handler(choice);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement