-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibraryManagementSystem.h
More file actions
45 lines (37 loc) · 1.04 KB
/
LibraryManagementSystem.h
File metadata and controls
45 lines (37 loc) · 1.04 KB
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
#pragma once
struct book {
char name[256];
char author[256];
int id;
struct book* next;
//create LinkedList of review structs for each book somehow
};
struct review {
int bookID;
int stars; //1-5 star rating
char written[256]; //written review of book
struct review* next;
};
struct student {
char name[256];
char email[256];
char book[256];
char a[256];
int id;
struct student* next;
};
int lib_main();
struct book* initialize_lib(struct book*);
struct student* book_issue(struct student*);
struct student* book_return(struct student*);
struct book* diplay_lib(struct book*);
struct book* delete_book(int);
struct book* add_book(char[ ], char[ ], int);
struct student* write_review(struct student*);
struct review* add_review(review*);
extern struct review* reviews; //pointer to a linked list of reviews
void view_previous_reviews(void);
double average_rating(int, struct review*);
void display(struct student*);
void greetings();
void main_menu();