-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.h
46 lines (31 loc) · 901 Bytes
/
entry.h
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
//Fe Jackson
//CS 261
//"entry.h"
/*
This file contains a class called entry. It has a constructor, 4 ints,
and two strings. This class stores an entry of a date, a station, a
resource, and the amount of that resource produced on that date at that
station. It also has a get_data function that passes the data from the entry
object to the function that calls the get_data function.
*/
#pragma once
#include <string>
using namespace std;
class entry
{
public:
//constructor
entry (int cur_year, int cur_month, int cur_day, string cur_station,
string cur_resource, int cur_amount);
//passes data members to the function that calls this function
void get_data (int & get_year, int & get_month,
string & get_station, string & get_resource,
int & get_amount);
private:
int year;
int month;
int day;
string station;
string resource;
int amount;
};