0% found this document useful (0 votes)
221 views4 pages

Description of Classes Used: Class Railways: Private Data Members

The document describes a Railways class with private data members to store station names, distances, and fares. It has public member functions to add data, show amounts, and modify information. It also describes a detail() function to show details. Hardware requirements include a printer, compact drive, processor, RAM, and hard disk. Software requirements are Windows 7, Turbo C++ for program execution, and MS Word for output presentation. A second section provides background on the development of C++ from C by Bjarne Stroustrup to make programming easier while maintaining compatibility with C. It also discusses standardization efforts by ANSI to maintain portability across C and C++ implementations.

Uploaded by

AshishSingh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
221 views4 pages

Description of Classes Used: Class Railways: Private Data Members

The document describes a Railways class with private data members to store station names, distances, and fares. It has public member functions to add data, show amounts, and modify information. It also describes a detail() function to show details. Hardware requirements include a printer, compact drive, processor, RAM, and hard disk. Software requirements are Windows 7, Turbo C++ for program execution, and MS Word for output presentation. A second section provides background on the development of C++ from C by Bjarne Stroustrup to make programming easier while maintaining compatibility with C. It also discusses standardization efforts by ANSI to maintain portability across C and C++ implementations.

Uploaded by

AshishSingh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Description of Classes Used

Class railways:

Private Data Members:


Station[30]: To Store Station Name
distance: To Store Distance
fare: To Store Fare

Public Member Functions:


ad_data(): Function to Add Data
ammout(): Function to Show Ammount
modify: Function to Modify Information

Description of Functions Used:


detail(): Function to Show Details

REQUIREMENTS
HARDWARE REQUIRED
Printer: to print the required
documents of the project
Compact Drive
Processor: Intel(R) Pentium (R)
RAM: 4 GB
Hard disk: 500 GB.

SOFTWARE
REQUIRED
Operating system : Windows 7
Ultimate
Turbo C++: for execution of
program and
Ms Word: for presentation of output.

About C++
In the early 1970s, Dennis Ritchie of Bell Laboratories
was engaged in a project to develop a new operating
system. Ritchie discovered that in order to accomplish his
task he needed the use of a programming language that
was concise and that produced compact and speedy
programs. This nee led Ritchie to develop the
programming language called C.
In the early 1980s, also at Bell Laboratories, another
programming language was created which was based
upon the C language. This new language was developed
by Bjarne Stroustrup and was called C++. Stroustrup
states that the purpose of C++_is to make writing good
programs easier and more pleasant for the individual
programmer. When he designed C++ he added OOP
(Object Oriented Programming) features to C without
significantly changing C component. Thus C++ is a
relative (called a superset) of C, meaning that any valid
C is also a valid C++ program.
There are several versions of the C++ language, of which
Visual C++ is only one. Other dialects include Borland C+
+, Turbo C++, and Code Warrior (Mac). All of these
software packages enable you to create computer
programs with C++, but they all implement the C++
language in slightly different manner. In an attempt to
maintain portability of both the C and C++ languages,
the American National Standards Institute (ANSI)

developed a standard of consistency for C and C++


programming.

You might also like