-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
64 lines (52 loc) · 1.95 KB
/
Source.cpp
File metadata and controls
64 lines (52 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*==========================================================================
= Programmer: Brian Roden Date: 3/07/2019 =
= =
= Email: bjrygq@mail.umkc.edu Class: For Fun =
= =
= Project Title: C++ Calendar Section: =
= =
= Current Date: 3/31/2019 Completed Date: =
= =
= Version: 1.2.1 Build: =
===========================================================================*/
#include "Event.h"
#include "IO.h"
void showMenu();
void main() {
std::string name = "name", description = "description", devCode = "7";
int formattedDate, menuOption;
showMenu();
// To test, enter 7 (the developer code)
std::cin >> menuOption;
std::cin.ignore();
switch (menuOption) {
case 1:
std::cout << std::endl << "This feature has not been added... yet." << std::endl;
break;
case 2:
std::cout << std::endl << "This feature has not been added... yet." << std::endl;
break;
case 3:
std::cout << std::endl << "This feature has not been added... yet." << std::endl;
break;
case 4:
exit(1);
break;
case 7:
IO::clearScreen();
name = IO::stringInitial(name);
description = IO::stringInitial(description);
formattedDate = IO::formattedDate();
break;
default:
IO::clearScreen();
showMenu();
}
}
void showMenu() {
std::cout << "1. View My Events" << std::endl;
std::cout << "2. Add An Event" << std::endl;
std::cout << "3. Remove an Event" << std::endl;
std::cout << "4. Exit" << std::endl << std::endl;
std::cout << "What would you like to do? ";
}