You are on page 1of 12

Contents

1]. INTRODUCTION TO C++


2]. DATA FILE HANDLING
3]. OBJECT ORIENTED PROGRAMMING
4]. DOCUMENTATION OF PROJECT
5]. INTRODUCTION TO THE PROJECT
6]. ALGORITHM OF THE PROJECT
7]. C++ SOURCE CODE
8]. SAMPLE OUTPUT
9]. BIBLIOGRAPHY
ACKNOWLEDGEMENT

I’d like to express my greatest gratitude to the


people who have helped & supported me
throughout my project. I’ m grateful to my teacher
Mrs. Meenakshi Mam for her continuous
support for the project, from initial advice &
encouragement to this day.
I can’t forget to offer hearty thanks to the
PRICIPAL MELVIN CJ.
Special thanks of mine goes to my colleague who
helped me in completing the project by giving
interesting ideas, thoughts & made this project
easy and accurate.
I wish to thanks my parents for their undivided
support & interest who inspired me & encouraged
me to go my own way, without which I would be
unable to complete my project. At last but not the
least I want to thanks my friends who appreciated
me for my work & motivated me and finally to
God who made all the things possible.
CERTIFICATE

This is to certify that Mr. VISHAL PAWAR


student of Class XII ‘C’ has successfully
completed his project on

LIBRARY MANAGEMENT

during the session 2013-2014 under my guidance.


The approach towards the subject has been sincere.

Date : ……………………

………………… .………………
Internal External
INTRODUCTION TO C++
C++ is a programming language that is general purpose, statically typed,
free-form, multi-paradigm and compiled. It is regarded as an intermediate-
level language, as it comprises both high-level and low-level language
features. Developed by Bjarne Stroustrup starting in 1979 at Bell Labs,
C++ was originally named C with Classes, adding object oriented features,
such as classes, and other enhancements to the C programming language.
The language was renamed C++ in 1983 as a pun involving the increment
operator.

C++ is one of the most popular programming languages and is implemented


on a wide variety of hardware and operating system platforms. As an
efficient compiler to native code, its application domains include systems
software, application software, device drivers, embedded software, high-
performance server and client applications, and entertainment software
such as video games .The language began as enhancements to C, first
adding classes, then virtual functions, operator overloading, multiple
inheritance, templates and exception handling, among other features.

The major reason behind the success and popularity of C++ is that it
supports the object oriented technology,the latest in the software
development and the most near to the world.

One can easily judge the importance of C++ as given in the following line :

“Object Oriented Technology is regarded as the


ultimate paradigm for the modelling of
information,be that logic or data. The C++ has
by now shown to fulfil this goal.”
DATA FILE HANDLING
Most computer programmers work with files.This is because files help in
storing information permanently. Word processors create document
files. Database programs creates files of information.

Compilers read source files and generate executable files.

File : The information / data stored under a specific name on a


storage device, is called a file.

Stream : It refers to a sequence of bytes.


Text file : It is a file that stores information in ASCII
characters. In text files, each line of text is terminated with a
special character known as EOL (End of Line) character or delimiter
character. When this EOL character is read or written, certain
internal translations take place.

Binary file : It is a file that contains information in the same


format as it is held in memory. In binary files, no delimiters are used
for a line and no translations occur here.

Classes for file stream operation


Ofstream.h : Stream class to write on files
ifstream .h : Stream class to read from files
fstream.h : Stream class to both read and write from/to
f files.
OBJECT ORIENTED PROGRAMMING

Object oriented programming is method of programming where a system


is considered as a collection of objects that interact together to
accomplish certain tasks.

The core of the pure object-oriented programming is to create an


object, in code, that has certain properties and methods. While designing
C++ modules, we try to see whole world in the form of objects. For
example a car is an object which has certain properties such as color,
number of doors, and the like. It also has certain methods such as
accelerate, brake, and so on.

There are few principle concepts that form the foundation of object-
oriented programming:

Object:
This is the basic unit of object oriented programming. That is both data
and function that operate on data are bundled as a unit called as object.

Class:
Class is a way of binding data members along with member function
associated with it.

Abstraction:
Data abstraction refers to, providing only essential information to the
outside word and hiding their background details, i.e., to represent the
needed information in program without presenting the details.
For example, a database system hides certain details of how data is
stored and created and maintained. Similar way, C++ classes provides
different methods to the outside world without giving internal detail
about those methods and data.

Encapsulation:
Encapsulation is placing the data and the functions that work on that
data in the same place. While working with procedural languages, it is not
always clear which functions work on which variables but object-oriented
programming provides you framework to place the data and the relevant
functions together in the same object.

Inheritance:
One of the most useful aspects of object-oriented programming is code
reusability. As the name suggests Inheritance is the process of forming
a new class from an existing class that is from the existing class called
as base class, new class is formed called as derived class.

This is a very important concept of object-oriented programming since


this feature helps to reduce the code size.

Polymorphism:
The ability to use an operator or function in different ways in other
words giving different meaning or functions to the operators or
functions is called polymorphism. Poly refers to many. That is a single
function or an operator functioning in many ways different upon the
usage is called polymorphism.

Overloading:
The concept of overloading is also a branch of polymorphism. When the
existing operator or function is made to operate on new data type, it is
said to be overloaded.
DOCUMENTATION
NAME : LIBRARY MANAGEMENT

PURPOSE : TO STORE AND MAINTAIN DATA


STORED IN LIBRARY RECORD.

OPERATING SYSTEM : WINDOWS 7 { ULTIMATE }

FILE SIZE : 54 KB

FUNCTIONS USED : putdata()


addrecord()
search_byname()
search_bycity()
search_pn()
search_bysurname()
modify_record()
delete_record() ;
AN INTRODUCTION TO PROJECT

This C++ menu driven program on LIBRARY MANAGEMENT


SYSTEM has book and student class with data members like
book no. , bookname, authername . Book’s record is stored in a
binary file. A student can issue book and deposit it within 15
days. Student is allowed to issue only one book. Student
records are stored in binary file. Administrator can add ,
modify or delete record.

In this Library Management System project , you can enter


the record of new books and retrieve the details of books
available in the library. You can issue the books to the students
and maintain their records. Late fine is charged for students
who returns the issued books after the due date. Only one
book is issued to students. New book is not issued to students
those not returned the last book.
BIBLIOGRAPHY

 Let us C++
 Computer Science With C++
- Sumitra Arora
LIBRARY
MANAGEMENT
SAMPLE
OUTPUT

You might also like