-
Notifications
You must be signed in to change notification settings - Fork 0
/
other.cpp
165 lines (141 loc) · 3.12 KB
/
other.cpp
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#include <iostream>
#include <string>
using namespace std;
class libz
{
};
class installation
{
string passwward, username;
string enters;
public:
void setting()
{
cout << "enter your username :" << endl;
getline(cin, username);
cout << "enter passward : " << endl;
getline(cin, passwward);
}
void menubar()
{
cout<<"this is the menu bar :"<<endl;
}
void login()
{
cout <<"please enter the passward :"<<endl;
getline(cin,enters);
if(enters == passwward)
{
menubar();
}
}
};
class store
{
string author, ttle;
public:
void getName()
{
getline(cin, author);
}
void gettle() { getline(cin, ttle); }
void displayInfo()
{
cout << "Name : " << author << endl;
cout << "ttle : " << ttle << endl;
}
} st[10];
class issued
{
store stores[5];
public :
void display(store stored)
{
stores[5] = stored;
for(int i=5; i<5; i++)
{
cout<<"availible books are :"<<endl;
cout<<stores[i].displayInfo();
}
}
};
class members
{
string name;
string dep;
string id;
string bookname;
public :
void membership()
{
cout<<"enter your name :"<<endl;
getline(cin,name);
cout<<"your id"<<endl;
getline(cin, id);
cout<<"you have been successfully added in memberships ::"<<endl;
}
void check()
{
int number;
cout<<"are you added into member ship ? YES or NO"<<endl;
cout<<"if not press one for registeration :"<<endl;
cin>>number;
if(number==1)
{
membership();
}
}
};
class student : public members
{
string stName, roll_no, dep, book_name;
public :
void issue()
{
cout<<"book name"<<endl;
getline(cin, book_name);
cout<<"roll"<<endl;
getline(cin, roll_no);
cout<<"dep"<<endl;
getline(cin, dep);
cout<<"stNmae"<<endl;
getline(cin, stName);
}
void feedback()
{
cout<<"please type your feedback :"<<endl;
}
void retbook()
{
cout<<"book name"<<endl;
getline(cin, book_name);
cout<<"roll"<<endl;
getline(cin, roll_no);
cout<<"dep"<<endl;
getline(cin, dep);
cout<<"stNmae"<<endl;
getline(cin, stName);
cout<<"THANK YOU"<<endl;
}
};
int main()
{
installation inst;
inst.setting();
inst.login();
system("pause");
return 0;
}
// for (int i = 0; i < 5; i++)
// {
// cout << "Student " << i + 1 << endl;
// cout << "Enter name" << endl;
// st[i].getName();
// cout << "Enter marks" << endl;
// st[i].gettle();
// }
// for (int i = 0; i < 5; i++)
// {
// cout << "Student " << i + 1 << endl;
// st[i].displayInfo();
// }