Computer Science: A Structured Approach Using C++, Second Edition
It's a good study material for someone who are going to study C++ from the begining.
There are 17 Chapters , including lots of codes.
I concluded some points while reading this book as follows:
1) I/O Stream Classes :
A file would be in reading ,writing or error states. And the error state includes logical error and physical error.
Open a file :
ifstream fsIn;
fsIn.open("file1");
At the begining, the reading header is at the start of the file. While reading, it will move foward ,until reach the end of the file.
Create a new file:
ofsteam fsOut;
fsOut.open("file1");
If the file has exist, the old data will be deleted, if not , it would create a new file.
Append file:
It's a good study material for someone who are going to study C++ from the begining.
There are 17 Chapters , including lots of codes.
I concluded some points while reading this book as follows:
1) I/O Stream Classes :
A file would be in reading ,writing or error states. And the error state includes logical error and physical error.
Open a file :
ifstream fsIn;
fsIn.open("file1");
At the begining, the reading header is at the start of the file. While reading, it will move foward ,until reach the end of the file.
Create a new file:
ofsteam fsOut;
fsOut.open("file1");
If the file has exist, the old data will be deleted, if not , it would create a new file.
Append file: