1000 Projects
<<<Classroom & Online Training's on android, Java, .Net, C, C++, Big Data Hadoop, SAP, SQL, Oracle, Sales Force>>>

Library Management CPP Mini Project Source Code

July 21, 2012

This Library Management C++ Project useful for Engineering Third Year Students to develop their simple projects. This project has the below options:

  1. Exit :- Click To Close The Application
  2. Book :- Process Book Related Jobs
  3. Member :- Process Member Related Jobs
  4. Change :- Change Your Password & System Date
  5. Add :- Click To Add New Books.
  6. Delete :- Click To Delete Existing Books.
  7. Issue :- Issues Books To Members.
  8. Return :- Accept Issued Books From Members.
  9. Lost :- Fine Member For An Issued-Lost Book.
  10. Details :- Get Details Of A Particular Book.
  11. View :- Re_Solve Your Search Here.
  12. Add :- Add Members To Library.
  13. Delete :- Delete An Existing Member From Library.
  14. Renewal :- Renew Registrations Of Existing Member.
  15. Delayed :- Details Of Delayed Members or all Book issues.
  16. Access :- Change Your Password Here.
  17. Date :- Change System Date & Time.

Find the below added source code for this Library project:

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
166
167
168
169
170
171
172
173
174
void project::book_details()
{
char returnn,i=0,j=0;char data[81];
key_buffer key;
long fp;char ptr,yes=1,enter=0;msgbox msg;
union REGS ii,oo;
char d[21];
char length,leng;
key.clear_keybuffer();
form bk_det(458);
bk_det.create("BK_Detail");
textbox book_id(135,150,"Book_id","19");
textbox book_name(185,200,"Book_Name");
textbox author_name(235,250,"Author_Name");
textbox pub_name(285,300,"Publisher_Name");
textbox book_sub(335,350,"On Subject");
textbox book_price(385,400,"Purchase_Price");
buttn ok(225,430,280,445," ok",EGA_GREEN);
buttn cancel(315,430,370,445,"cancel",EGA_GREEN);
bookmast.clear();
bookmast.seekg(0,ios::beg);
d[0]='/0';
bookmast.clear();
bookmast.seekg(0,ios::beg);
while(bookmast.eof()!=1)
{
fp=bookmast.tellg();
bookmast.getline(data,85,'\n');
if(bk_record(data))
fprecord=fp;
if(!bk_record(data)&amp;&amp;data[0]!='*')
if(strncmpi(d,data,strlen(d))==0)
{
bookmast.clear();
bookmast.seekp(fp,ios::beg);
bookmast&lt;&lt;"*";
bookmast.clear();
bookmast.seekg(fprecord,ios::beg);
bookmast.getline(data,85,'\n');
fp=bookmast.tellg();
bookmast.getline(data,85,'\n');
num_books_type=atoi(data);
num_books_type--;
itoa(num_books_type,data,10);
bookmast.seekp(fp,ios::beg);
if(num_books_type!=0)
bookmast&lt;&lt;data;
else
bookmast&lt;&lt;"*";
bookmast&lt; i=num_books_type;
if(num_books_type==0)
{
bookmast.clear();
bookmast.seekg(fprecord,ios::beg);
bookmast&lt;&lt;"*";
}
bookmast.seekg(fp,ios::beg);
bookmast.getline(data,85,'\n');
fp=bookmast.tellg();
bookmast.getline(data,85,'\n');
num_books_type=atoi(data);
num_books_type--;
itoa(num_books_type,data,10);
bookmast.seekp(fp,ios::beg);
if(i!=0)
bookmast&lt;&lt;data;
else
bookmast&lt;&lt;"*";
bookmast&lt; ptr=1;
break;
}

}
void project::book_add()
{
char i=0,j=0,enter=0,yes=1;char data[50];
union REGS ii,oo;
int cost;
char dataa[50];
char type;
char d[25];
key_buffer key;
msgbox msg;
key.clear_keybuffer();
form bk_add(458);
ltoa(++book.num_books,data,10);
bk_add.create("BOOK_ADD");
textbox book_sub(135,150,"On Subject","8");
textbox book_name(185,200,"Book_Name","21");
textbox author_name(235,250,"Author_Name","16");
textbox pub_name(285,300,"Publisher Name","8");
textbox book_price(335,350,"Purchase_Price","5");
textbox book_copies(385,400,"No. of Copies","3");
buttn ok(225,430,280,445," Ok",EGA_GREEN);
buttn cancel(315,430,370,445,"Cancel",EGA_GREEN);
clear_record();
initialise();
merge(data,2);
strcpy(data,book_sub.getdata(0));
if(!strcmp(data,"*"))
{
--book.num_books;
bk_add.clear();
return ;
}
merge(data,1);
strcpy(data,book_name.getdata(0));
if(!strcmp(data,"*"))
{
--book.num_books;
bk_add.clear();
return ;
}
merge(data,1);
strcpy(data,author_name.getdata(0));
if(!strcmp(data,"*"))
{
--book.num_books;
bk_add.clear();
return ;
}
merge(data,1);
strcpy(data,pub_name.getdata(0));
if(!strcmp(data,"*"))
{
--book.num_books;
bk_add.clear();
return ;
}
merge(data,1);
while(1)
{
strcpy(data,book_price.getdata(1));
if(!strcmp(data,"*"))
{
--book.num_books;
bk_add.clear();
return ;
}
cost=atoi(data);
if(cost&gt;0&amp;&amp;data[0]!='0')
break;
else
book_price.clear();
}
merge(data,0);
cost=atoi(data);
if(cost&gt;0&amp;&amp;cost&lt;=180)
type='D';
if(cost&gt;180&amp;&amp;cost&lt;=300)
type='C';
if(cost&gt;300&amp;&amp;cost&lt;=750)
type='B';
if(cost&gt;750)
type='A';
put_at_beg(type);
while(1)
{
strcpy(data,book_copies.getdata(1));
if(!strcmp(data,"*"))
{
--book.num_books;
bk_add.clear();
return ;
}
ok.select();
mouse.set_mouse(600,200);
mouse.showmouse();
cost=atoi(data);
if(cost&gt;0&amp;&amp;data[0]!='0')
break;
else
book_copies.clear();
}

Download Library Management CPP Mini Project with Source Code.


posted in C++ Projects, CSE Mini Projects, CSE Projects with Source Code by Ramesh Gavva/Kasarla shanthan

Follow comments via the RSS Feed | Leave a comment | Trackback URL


‹‹‹ Online News Management System VB Project Source Code

Digital Watermarking Project Abstract ›››

Custom Search

Leave Your Comment

 
Copyright 2014 | Powered by 1000Projects.org | Developed by WikiHands.