-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecord.h
More file actions
executable file
·44 lines (35 loc) · 739 Bytes
/
record.h
File metadata and controls
executable file
·44 lines (35 loc) · 739 Bytes
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
/*
CS202 ASSIGNMENT 1: MAX SMILEY
FILE: record.h
records are created by vehicles and returned to a list of records in main.
if the program every actually worked, this would be used to display all the
information about each vehicle's delivery, with RecordList::print() in main.
*/
#ifndef RECORD_H_
#define RECORD_H_
#include <iostream>
class Record
{
public:
Record();
Record(int, int, int, int);
void print();
protected:
int v_type;
int travDistance;
int travTime;
int numDeliveries;
float payrate;
};
class RecordList: public Record
{
public:
RecordList();
RecordList(int, int, int, int);
void add_record(RecordList * record);
void print();
protected:
RecordList * next;
int length;
};
#endif