关闭

C++ Learning (1)

555人阅读 评论(0) 收藏 举报
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:
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:845次
    • 积分:28
    • 等级:
    • 排名:千里之外
    • 原创:1篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档
    阅读排行
    评论排行