C++ Learning (1)

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:
阅读更多
文章标签: c++ file stream header
个人分类: C/C++
想对作者说点什么? 我来说一句

Learning OpenCV 3 Computer vision in C++ epub

2017年09月25日 43.94MB 下载

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭