-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackpack.hpp
More file actions
42 lines (35 loc) · 875 Bytes
/
Copy pathBackpack.hpp
File metadata and controls
42 lines (35 loc) · 875 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
/*********************************************************************
** Program name: FinalProject
** Author: James Scanlon
** Date: March 19, 2019
** Description: Interface of the Backpack class.
*********************************************************************/
#ifndef Backpack_hpp
#define Backpack_hpp
#include <stdio.h>
#include <iostream>
#include <string>
#include <vector>
#include "Items.hpp"
using namespace std;
class Backpack
{
private:
Items* head;
Items* tail;
void setHead(Items* item);
void setTail(Items* item);
Items* getHead();
Items* getTail();
void clearBackpack();
public:
// constructor
Backpack();
// functions
void printBackpack();
void printItem(Items* item);
void addItem(string itemName, int amount);
// destructor
~Backpack();
};
#endif /* Backpack_hpp */