- 46
- 0
- 约2.04万字
- 约 9页
- 2018-06-12 发布于贵州
- 举报
C毕业论文外文翻译
2012年毕业设计论文英汉互译部分
Chapter 8. The IO Library
In C++, input/output is provided through the library. The library defines a family of types that support IO to and from devices such as files and console windows. Additional types allow strings to act like files, which gives us a way to convert data to and from character forms without also doing IO. Each of these IO types defines how to read and write values of the built-in data types. In addition, class designers generally use the library IO facilities to read and write objects of the classes that they define. Class types are usually read and written using the same operators and conventions that the IO library defines for the built-in types.
This chapter introduces the fundamentals of the IO library. Later chapters will cover additional capabilities: Chapter 14 will look at how we can write our own input and output operators; Appendix A will cover ways to control formatting and random access to files.
Our programs have already used many IO library facilities:
istream (input stream) type, which supports input operations
ostream (output stream) type, which provides output operations
cin (pronounced see-in) an istream object that reads the standard input.
cout (pronounced see-out) an ostream object that writes to the standard output
cerr (pronounced see-err) an ostream object that writes to the standard error. cerr is usually used for program error messages.
operator , which is used to read input from an istream object
operator , which is used to write output to an ostream object
getline function, which takes a reference to an istream and a reference to a string and reads a word from the istream into the string
This chapter looks briefly at some additional IO operations, and discusses support for reading and writing files and strings. Appendix A covers how to control formatting of IO operations, support for random access to files, and support for unformatted IO. This primer does not describe the entire iostream
您可能关注的文档
- 老年人口腔保健ppt课件.ppt
- 老年人颅脑外伤诊治原则ppt课件图文.ppt
- 老年保健PPT课件.ppt
- 老年养生保健ppt课件.ppt
- 老年保健课 睡眠问题ppt课件.ppt
- 老年康复概论ppt课件.ppt
- 老年房颤抗凝PPT课件.ppt
- 老年人常见疾病护理知识3PPT课件.pptx
- 老年抑郁症的诊疗进展 ppt课件.ppt
- 缺血性脑血管病诊治进展方案课件.ppt
- 全过程工程管理造价咨询工程监理项目服务方案投标方案(技术部分).doc
- 招标代理服务投标技术服务方案(技术方案).doc
- AI大模型与AIGC技术在公安领域的应用解决方案(99页 PPT).pptx
- 工业4.0智能制造数字工厂规划方案.pptx
- 树立社会主义核心价值观.docx
- 三年(2023-2025)中考历史真题分类汇编(全国)专题21 科技文化与社会生活(解析版).docx
- 2025年中考道德与法治真题完全解读(吉林卷).pdf
- 2025年中考道德与法治真题完全解读(安徽卷).pdf
- 三年(2023-2025)中考历史真题分类汇编(全国)专题14 人民解放战争(解析版).pdf
- 三年(2023-2025)广东中考历史真题分类汇编:专题03 中国近代史(八年级上册)(解析版).docx
最近下载
- 2026届四川省成都市石室中学化学高一第一学期期末综合测试试题含解析.doc
- 维修电工技师高级技师理论复习资料.pdf VIP
- 山东省菏泽市2024-2025学年高一下学期期末考试含答案(10科试卷).pdf
- 新员工岗前公司级安全考试(重庆轨道交通-B卷).docx VIP
- 装备修理质量管理课件.pptx VIP
- 螺杆机-海信螺杆式风冷热泵机组.pdf VIP
- 诱导性多功能干细胞研究行业深度调研及发展策略研究报告.docx
- 湖南省长沙市长郡中学2024-2025学年高一上学期期末考试语文试卷(含答案).pdf VIP
- 关于高三综评典型事例摘抄.docx VIP
- 装备修理技术与信息管理.pptx VIP
原创力文档

文档评论(0)