-
Notifications
You must be signed in to change notification settings - Fork 0
/
stdafx.h
89 lines (82 loc) · 1.89 KB
/
stdafx.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#pragma once
#include <iostream>
#include <conio.h>
#include <string>
#include <algorithm>
#include <fstream>
using namespace std;
int Students_num, Books_num;
string admin_name = "admin";
string admin_password = "admin";
string user_input;
int user_index = -1;
int book_selected = -1;
struct student {
int ID;
string email;
string password;
string first_name;
string last_name;
int borrowed_books_num = 0;
string borrowed_books[10];
}Students[1000] = {};
struct book {
int code;
string name;
string author;
string category;
int edition;
bool available_to_borrow = true;
}Books[1000] = {};
// Abdo
void Student_edit_info(student&);
void Student_view_books();
// Ahmed
void Add_book();
void Delete_book();
// Kero
void admin_rest_program();
bool Email_isFound(string);
void logIn();
void logInAsAdmin();
void logInAsStudent(bool&);
void SignUp();
void get_int(int&);
string getPassword(char, string&);
// Sarah
void Log_out(bool&);
void Modify_order();
// Tarahony
void Modify_Book();
void Select_book(int&);
// nasseim (DataBase)
void Resotring_Nums();
void Save_Nums();
void Restoring_IDs_from_file();
void Save_IDs();
void Restoring_Emails_from_file();
void Save_Emails();
void Restoring_passwords_from_file();
void Save_passwords();
void Restoring_First_names_from_file();
void Save_First_names();
void Restoring_Last_names_from_file();
void Save_Last_names();
void Restoring_borrowed_books_nums_from_file();
void Save_borrowed_books_nums();
void Restoring_borrowed_books_from_file();
void Save_borrowed_books();
void Restoring_Codes_from_file();
void Save_Codes();
void Restoring_Names_from_file();
void Save_Names();
void Restoring_authors_from_file();
void Save_authors();
void Restoring_categorys_from_file();
void Save_categorys();
void Restoring_editions_from_file();
void Save_editions();
void Restoring_Available_to_borrow_from_file();
void Save_Available_to_borrow();
void Restore_All();
void Save_All();