1000 Projects

Library Management CPP Mini Project Source Code

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

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:


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)&&data[0]!='*')
if(strncmpi(d,data,strlen(d))==0)
{
bookmast.clear();
bookmast.seekp(fp,ios::beg);
bookmast<<"*";
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<<data;
else
bookmast<<"*";
bookmast< i=num_books_type;
if(num_books_type==0)
{
bookmast.clear();
bookmast.seekg(fprecord,ios::beg);
bookmast<<"*";
}
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<<data;
else
bookmast<<"*";
bookmast< 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>0&&data[0]!='0')
break;
else
book_price.clear();
}
merge(data,0);
cost=atoi(data);
if(cost>0&&cost<=180)
type='D';
if(cost>180&&cost<=300)
type='C';
if(cost>300&&cost<=750)
type='B';
if(cost>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>0&&data[0]!='0')
break;
else
book_copies.clear();
}

Download Library Management CPP Mini Project with Source Code.


The following two tabs change content below.
Hi, Find more on FB...

Latest posts by Ramesh Gavva/Kasarla shanthan (see all)



‹‹‹ Online News Management System VB Project Source Code

Digital Watermarking Project Abstract ›››

Custom Search

Leave Your Comment

 
Powered by 1000Projects.org , All rights Reserved, Copyright Policy