Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Development of C++ Program for Storing and Reading of Information About a Group of Students

Development of C++ Program for Storing and Reading of Information About a Group of Students

Ratings: (0)|Views: 9|Likes:


Chapter1 - Introduction
A program typically kinds of data communication: Data transfer between the console unit and the program. Data transfer between the program and a disk file. The input/output system of C++ handles


Chapter1 - Introduction
A program typically kinds of data communication: Data transfer between the console unit and the program. Data transfer between the program and a disk file. The input/output system of C++ handles

More info:

Published by: Samson Oluwaseun Fadiya on Jul 19, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/07/2012

pdf

text

original

 
1
NAME: SAMSON OLUWASEUN FADIYADEPARTMENT: MANAGEMENT INFORMATION SYSTEMCOURSE CODE & NAME: COSC 511 ADVANCEDPROGRAMMING LANGUAGESTITLE: Development of C++ program for storing and reading of information about a group of students.SUBMITTED TO: PROFESSOR ALEXANDER KOSTIN
 
2
Chapter1
- Introduction
A program typically kinds of data communication: Data transfer between theconsole unit and the program. Data transfer between the program and a diskfile. The input/output system of C++ handles file operations which are verymuch similar to the console input and output operations. It uses file streamsas an interface between the programs and the files. The stream thatsupplies data to the program is known as input stream and the one thatreceives data from the program is known as output stream. In other words,the input stream extracts or reads data from the file and the output streaminserts or writes data to the file.The purpose of this project is to develop a C++ program for storing andreading of information about a group of students.
 
3
Chapter2
General Information about File operations in C++2.1 Data Flows
Scores
S
tudents ID e.g.
 
Studentsnames Detail
2.2 - Files and Operation in C++
File processing in C++ is performed using the
fstream
class. Unlikethe 
 structure,
fstream
is a complete C++ class with constructors, adestructor and overloaded operators [2].To perform file processing, you can declare an instance of an
fstream
object. If you do not yet know the name of the file you want toprocess, you can use the default constructor.Unlike the
FILE
structure, the
fstream
class provides two distinct classesfor file processing. One is used to write to a file and the other is used to readfrom a file.
2.3 - How to Open a File
Another operation you can perform consists of opening an already existingfile to have access to its contents. To do this, C++ providesthe
ifstream
class. The
ifstream
class provides various constructors youcan use, two of which are particularly important [2]. If you have enough
 
S
tudentsRecords
1Checkoptions
/enter&
 Browse files contents

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->