-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.cpp
56 lines (40 loc) · 1.07 KB
/
functions.cpp
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
#include "football_func.h"
void showMenu()
{
int choice;
std::cout << "\n"
<< " 1 - View Current Statistics\n"
<< " 2 - Update Statistics\n"
<< " 3 - Exit\n"
<< " Enter your choice and press return key: ";
std::cin >> choice;
switch (choice)
{
case 1:
//code to open the file and print data
break;
case 2:
//code to allow score update
break;
case 3:
std::cout << "End of Program.";
exit(1); //code to terminate the program
break;
default:
std::cout << "Invalid input";
break;
}
}
void getData(std::ifstream & inf, footBallPlayerType list[], int length)
{
}
void getData(std::ifstream& inp, footBallPlayerType list[], int length, footBallPlayerType jock) //list[]
{
std::cin >> jock.name;
std::cin >> jock.position;
std::cin >> jock.touchDowns;
std::cin >> jock.catches;
std::cin >> jock.passingYards;
std::cin >> jock.receivingYards;
std::cin >> jock.rushingYards;
}