You are on page 1of 14

HARDWARE AND

SOFTWARE
USED
1.Hardware
Personal computer
Laptop
Pendrive
RW DvD

2.SOFTWARE
TURBO C++
NOTEPAD
MS WORD 2009

INTRODUCTION

This project is a software on


LIBRARY MANAGEMENT .
A program for LIBRARY
MANAGEMENT
through which we can maintain all
the books of the library including
book name, book code, writter name
and copy of the book.

BIBLiOGRaphy
I have taken the help of the
following to complete this project
on time :

SUMITA ARORA (class 12 c++


book)
Lets c++ book .
www.gmail.com

Data dictionary

HEADER FILES
1.#include<fstream.h>
2.#include<conio.h>
3.#include<process.h>
4.#include<string.h>
5.#include<iomanip.h>
CLASS USED
1.BOOKS
Data member used:
char
char
Char

Bno[6]
Bname[50]
aname[20]

Member function used :


Void
Void
Void
Void
Void
Void
Void

create book()
show book()
modify book()
book issue()
display allb()
display alls()
delete student()

2.Student
Data members used :
Char admo [6];
Char name [20];
Char stbno[6];

Member function used:


Void create student()
Void show student()
Void modify student()
Void report()
#include <fstream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<string.h>
#include<iomanip.h>
Class book
{
Char bno[6];
Char bname[50];
Char aname[20];
public:

void create book ()


{
Cout<<\n new book entry ;
Cout<<\n enter the book no;
Cin>>bno;
Cout<<\n enter the name of
the book;
Gets(bname);
Cout<<\n enter autors name;
Puts(aname);
Cout<<\n book created;
}
Void show book()
{
Cout<<book no:<<bno;
Cout<<\n book name:;

Puts(bname);
Cout<<author name:;
Puts(aname);
}
Void modify book()
{
Cout<<\n book no:;<<bno;
Cout<<\n modify book name;
Gets(bname);
Cout<<modify authors of
book;
Gets(aname);
}
Char*retbno()
{

Return bno;
}
Void report ()
{
Cout<<bno<<setw(30)<<anam
e<<endl;
}
};
Class student
[
Char admno[6];
Char name[20];
Char stbno[6];
Int token;
Public:
Void create student ()

{
Clrscr();
Cout<<\n new student entry;
Cout<<\n enter the admission
no;
Cin>>admno;
Cout<<\n enter the name of the
student;
Gets(name);
Token=0;
Stbno[0]=/0;
Cout<<\n student record
created;
}
Void show student ()
{

Cout<<\n admission no:;


Ccout<<\n student name:;
Puts(name);
Cout<<\n no of book issued
:<<token;
If(token==1)
Cout<<\n book no<<stbno;
}
Void modify student ()
{
Cout<<\n admission
no:<<admno;
Cout<<\n modify student
name:;
Gets(name);
}

Char*retadmno()
{
Ret admno;
}
Char*retsbno()
{
Return stbno;
}
Int rettoken()
{
Return token;
}
Void addtoken()
{
Token=1;
}

Void resettoken()
{
Token=0;
}
Void getsbno(char t
{
Strcpy(stbno,t);
}
Void report()
{
Cout<<\t<<admno<<setw(20)<
<name<<setw(10)<<token<<en
dl;}
};
Fstream fp,fp1;
Book bk;

Student st;
Void write book()
{
Char ch;
Fp.open(book.dat,ios::out|
ios::app);
do
{
Clrscr();
Bk.

You might also like