This document is a student project on a telephone diary program created in C++. It includes an introduction to C++ and the project, descriptions of the program codes and modules, sample outputs, and a bibliography. The project uses classes and file handling to allow users to add, view, modify and delete telephone records from a database. It provides a simple menu-driven interface for registration and lookup of customer phone numbers and billing details.
4. CERTIFICATE
This is to certify that Nitesh of class
XII-A has successfully completed this
project under my supervision and
guidance. he has kept all necessary
details in his mind while making this
project. he has compiled the whole
project as desired.
_____________ _____
Teacher’s signature
5. ACKNOWLEDGEMENT
I wish to express my sincere thanks to Mrs.Ranjana
Grover, Principal of Sant Nirankari Public School for
guiding me to cause the successful outcome of this
project work.
I wish to express my deep & profound sense of
gratitude to my guide/teacher Mrs.Gurjeet, for her
expert help &valuable guidance, comments and
suggestions.
I also place on record, my sincere Gratitude to one and
all who, Directly or Indirectly, Have Lent their helping
hand in this venture.
6. INTRODUCTION TO C++
C++ is a programming Language Developed by Bjarne
Stroustrup. It was originally named as C with classes, was
renamed as C++ in 1983.It is regarded as an intermediate-level
language, as it comprises both high level and low-level language
features. Its application domains include system software,
application software, device drivers, embedded software, high-
performance server and client applications, and entertainment
software such as video games. C++ continues to be used and is
one of the preferred programming languages to develop
professional applications .C++ includes several operators such
as comparison, arithmetic, bit manipulation, logical operators
etc. One of the most attractive features of C++ is that it enables
the overloading of certain operators such as addition.
A few of the essential concepts within C++ programming
language include polymorphism, virtual and friend functions,
templates, name spaces and pointers.
For a time, C++ had no official standard and was maintained by
a de- facto standard, however since 1993, C++ is standardized
by a committee of the ISO.
C++ compiles directly to a machine's native code, allowing it to
be one of the fastest languages in the world, if optimized. C++
also supports both static and dynamic type checking.
C++ allows type conversions to be checked either at compile-
time or at run-time, again offering another degree of flexibility.
Most C++ type checking is, however, static.
7. INTRODUCTION TO
PROJECT
The telephone management system is database system. In
the system, we will try to give full information of the
telephone’s administration to the users. The users are very
familiar to the system. This system will be making more
easily to telephone work comparison to manual system.
The telephone directory system is a live project and it
provides a good flexibility and quick service.
In this system, we briefly describe the two main modules
that are generally used in telephone exchange i.e.
Registration and Evaluation. These two parts are
generally used in any telephone exchange and that is very
common or important.
Administration is the first module of the telephone
directory. This module contains the full information
about telephone exchange like customer’s details,
telephone number, std codes, etc. user can easily enter the
data in fields of the form like name, address, city, phone
number. This is the last and final module of the project.
Every telephone directory has needs to done this process.
Manually this very tedious, tough and time consuming
work but we want to make it easier to do this. In the
evaluation we find out the details customers.
8. Header Files
IOSTREAM.H - for basic I/O operations
CONIO.H - for clrscr()and getch() function
STDIO.H - for standard I/O operations
FSTREAM.H - for file handling
STRING.H – for string handling
PROCESS.H –for exit() function
DOS.H – for delay function
13. cout<<"nttttOPTIONS";
cout<<"nt1. TO ADD NEW RECORD"<<"nt2. TO SEE RECORD"<<"nt3.
FOR ENQUIRY" <<"nt4. TO MODIFY RECORD"<<"nt5. TO
DELETE"<<"nt6. QUIT"; cout<<"nntENTER YOUR CHOICE: ";
cin>>choice;
clrscr();
if(choice==1) //to add record
{
char no[15];
int flag;
long unsigned int p,q;
file.open("tel.dat",ios::in|ios::binary|ios::out|ios::app|ios::ate);
cout<<"ntENTER TELEPHONE NO.: ";
cin.get(ch);
cin.getline(no,15);
file.seekg(0);
flag=0;
do
{
file.read((char*)&a,sizeof(a));
if(strcmp(a.tel_no,no)==0)
{