-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
84 lines (77 loc) · 2.47 KB
/
main.cpp
File metadata and controls
84 lines (77 loc) · 2.47 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include <iostream>
#include <string>
#include "ascii.cpp" /* ASCII Art */
using namespace std;
void Menu()
{
system("clear");
cout << "================================\n";
cout << " reh - Animals in your terminal \n";
cout << "================================\n";
cout << " [1] - Skunk \n";
cout << " [2] - Dog \n";
cout << " [3] - Fox \n";
cout << " [4] - Horse \n";
cout << " [5] - Credits \n";
cout << "================================\n";
}
void Skunk()
{
system("clear");
printf("%s\n", skunk);
printf("\nreh! - have a nice day\n");
// return 0;
}
void Dog()
{
system("clear");
printf("%s\n", dog);
printf("\nwoof! - have a nice day!\n");
// return 0;
}
void Fox()
{
system("clear");
printf("%s\n", fox);
printf("\nyip! - have a nice day!\n");
// return 0;
}
void Horse()
{
system("clear");
printf("%s\n", horse);
printf("\nneigh! - have a nice day!\n");
// return 0;
}
void Credit()
{
system("clear");
printf("%s\n", credit);
}
// The meat in all this code
int main()
{
string st[20];
int itemcount = 0;
Menu();
int yourchoice;
string confirm;
do
{
cout << "Enter your choice (1-4):";
cin >> yourchoice;
switch (yourchoice)
{
case 1: Skunk(); break;
case 2: Dog(); break;
case 3: Fox(); break;
case 4: Horse(); break;
case 5: Credit(); break;
default: cout << "Not a choice"; break;
}
cout << "Press y or Y to Select a different animal";
cin >> confirm;
}
while (confirm == "y" || confirm == "Y");
return 0;
}