Skip to Content
C++程序设计:原理与实践(基础篇)(原书第2版)
book

C++程序设计:原理与实践(基础篇)(原书第2版)

by 本贾尼 斯特劳斯特鲁普
August 2021
Intermediate to advanced
450 pages
9h 36m
Chinese
Pearson
Content preview from C++程序设计:原理与实践(基础篇)(原书第2版)

第10章 输入输出流

我们学习科学来远离愚昧。

——Richard P.Feynman

在本章和下一章中,我们将从多个角度来学习C++标准库中有关处理输入输出的特性:输入输出流。我们将展示如何读写文件,如何处理输入输出错误,如何进行格式化输入,以及如何为用户自定义类型提供输入输出运算符及如何使用这类操作符。本章重点介绍基本问题:如何读写单个值,以及如何打开/读/写整个文件。最后会用一个例子来说明在一个较大规模的程序中应该考虑的一些I/O相关问题。下一章会介绍更深入的技术细节。

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉

Publisher Resources

ISBN: 9787111562252