-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBooks.h
More file actions
44 lines (36 loc) · 744 Bytes
/
Books.h
File metadata and controls
44 lines (36 loc) · 744 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
/*
Lisa Lin (lisalin@my.unt.edu)
Homework 3 Assignment - Library Management System
Started: 3/12/2021
Books storage header file
*/
#ifndef LL0484HW3_BOOKS_H
#define LL0484HW3_BOOKS_H
#include "Book.h"
#include <vector>
#include <iostream>
#include <map>
using namespace std;
class Books {
public:
/*
* menu options
*/
void addBook();
void editBook();
void deleteBook(int bookID);
void printAllBooks();
void findAndPrint();
bool emptyBook();
Book* findBook(int bookID);
void searchBook();
/*
store and load
*/
int numOfBooks(); //for use in storing
void store();
void load();
private:
map <int, Book*> books; //integer value of book
};
#endif //LL0484HW3_BOOKS_H