Project Work Submitted To The Chellappan Vidya Mandir International School in Partial Fulfillment of The Requirements For The Award of
Project Work Submitted To The Chellappan Vidya Mandir International School in Partial Fulfillment of The Requirements For The Award of
MANAGEMENT SYSTEM
Submitted by
SNEHA.M
Register Number:
PRINCIPAL GUIDE
U.GANESH KUMAR K.SIVACHITRA
M.A., M.Ed., M.Phil., MBA, M.Sc., B.Ed.,
Chellappan Vidya Mandir Chellappan Vidya Mandir
International School International School
Karaikudi Karaikudi
EXTERNAL EXAMINER
DECLARATION
Date:
SNEHA.M
ACKNOWLEDGEMENT
Ram : 1.00 GB
LEARNING C++:
Class Box
{
Public:
double length; // Length of a box
double breadth; //Breadth of a box
double height; //Height of a box
};
The keyword public determines the access attributes of the
members of the class that follow it. A public member can be
accessed from outside the class anywhere within the scope of
the object class as private or protected which we will discuss
in a sub-section.
DEFINE C++ OBJECTS
Both of the objects Box1 and Box2 will have their own copy
of data members.
2.4.2. INHERITANCE
You can have multiple definitions for the same function name
in the same scope. The definition of the function must differ
from each other by the types and/or the number of arguments
in the argument list. You cannot overload function
declarations that differ only by return type.
1 ofstream
This data type represents the output file stream and
is used to create files and to write information to
files.
2 ifstream
This data type represents the input file stream and is
used to read information from files.
3 fstream
This data type represents the file stream generally,
and has the capabilities of both ofstream and
ifstream which means it can create files, write
information to files, and read information from files.
To perform file processing in C++, header files <iostream>
and <fstream> must be included in your C++ source file.
OPENING A FILE
A file must be opened before you can read from it or write to
it. Either ofstream or fstream object may be used to open a
file for writing. And ifstream object is used to open a file for
reading purpose only.
Following is the standard syntax for open() function, which is
a member of fstream, ifstream, and ofstream objects.
void open(const char *filename, ios::openmode mode);
Here, the first argument specifies the name and location of
the file to be opened and the second argument of
the open() member function defines the mode in which the
file should be opened.
S.No Mode Flag & Description
1 ios::app
Append mode. All output to that file to be appended
to the end.
2 ios::ate
Open a file for output and move the read/write
control to the end of the file.
3 ios::in
Open a file for reading.
4 ios::out
Open a file for writing.
5 ios::trunc
If the file already exists, its contents will be truncated
before opening the file.
You can combine two or more of these values by ORing
them together. For example if you want to open a file in write
mode and want to truncate it in case that already exists,
following will be the syntax −
ofstream outfile;
outfile.open("file.dat", ios::out | ios::trunc );
Similar way, you can open a file for reading and writing
purpose as follows −
fstream afile;
afile.open("file.dat", ios::out | ios::in );
CLOSING A FILE
When a C++ program terminates it automatically flushes all
the streams, release all the allocated memory and close all the
opened files. But it is always a good practice that a
programmer should close all the opened files before program
termination.
Following is the standard syntax for close() function, which
is a member of fstream, ifstream, and ofstream objects.
void close();
WRITING TO A FILE
You read information from a file into your program using the
stream extraction operator (>>) just as you use that operator
to input information from the keyboard. The only difference
is that you use an ifstream or fstream object instead of
the cin object.
STUDY AND ANALYSIS OF ICT
MANAGEMENT
SYSTEM
DESIGN AND DEVELOPMENT
OF ICT
MANAGEMENT
SYSTEM
CONCLUSION
BIBLIOGRAPHY
SOURCE CODE