![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tcpl
sunyongjie_old_boy
努力成为拥有好习惯的普通专业程序员
展开
-
TCPL_21 streams
What you see is all you get.21.1 Introduction设计和实现general input/output facility为一个编程语言是非常难的。传统上,I/O被设计成只处理内置类型。c++允许自定义类型,这些类型的输入输出必须被处理,被考虑进来。I/O设备必须,简单,方便,安全,效率高,flexible灵活。最重要的是全面的,完善的complete。没有人能够come up一个解决方案,满足所有的人。It should therefore be possible fo原创 2010-12-30 14:11:00 · 527 阅读 · 0 评论 -
TCPL_1 notes to reader(这个章节现在我没有能力看太懂,留作以后再写笔记)
chapter 4 through 9 provide a tutorial introduction to c++'s built-in types and the basic facilities for constructing programs out of them.第四到九章是有关c++内置类型,以及由它们出发构造程序的基本功能的一个具有教材形式的介绍。原创 2011-01-04 15:59:00 · 540 阅读 · 0 评论 -
TCPL_4 types and declarations
4.1 typesconsider x=y+f(2); For this to make sense in a c++ program, the names x, y, and f must be suitably declared. That is, the programmer must specify that entities named x, y, and f exit and that they are of types for which =(assignment), +(addition),原创 2011-01-05 12:32:00 · 546 阅读 · 0 评论