-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
48 lines (39 loc) · 1.1 KB
/
main.cpp
File metadata and controls
48 lines (39 loc) · 1.1 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
/******************************************************************************
**Program Name: main.cpp
**Author: Long Mach
**Date: 10/29/19
**Description: main function
*****************************************************************************/
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>
//#include "Menu.hpp"
//#include "inputValidation.hpp"
//#include "Player.hpp"
//#include "Child.hpp"
//#include "Queue.hpp"
#include "Game.hpp"
int main()
{
Menu menu;
//Begin user prompts
menu.showTitleAuthor("Stages of Life", "Long Mach");
int choice = 1;
string line(50, '=');
while (choice != 2)
{
Game newGame;
newGame.playGame();
// ask if user want to start another life
cout << string(40,'-') << endl;
std::vector<string> choices =
{
"Start a new Life",
"Exit"
};
choice = menu.showChoices("How would you like to proceed?", choices);
cout << string(40,'-') << endl;
}
return 0;
}