C++学习笔记_01 C++ Primer chapter 1

Key Concept: Types
Types are one of the most fundamental concepts in programming and a
concept that we will come back to over and over in this Primer. A type
defines both the contents of a data element and the operations that are
possible on those data.
The data our programs manipulate are stored in variables and every
variable has a type. When the type of a variable named v is T, we often say
that “v has type T” or, interchangeably, that “v is a T.”

 

关键概念:类型

类型在程序中是一个非常重要的概念,并且这个概念我们会在本书中贯穿始终。

数据的类型不但决定了一个数据元素(对象)应该包含的内容,也决定了该数据上可执行的操作。

(PS: Java 由C++发展而来,所以在类型这个概念上十分相似)

 

我们程序处理的数据被存储在变量中,且每一个变量都有自己的类型。当我们把一个叫做v的变量类型设为T时,

我们可以说T是v变量的类型,或者,反过来说,v变量是T类型的。

 

Most of the examples in this book use the iostream library. Fundamental to the
iostream library are two types named istream and ostream, which represent input
and output streams, respectively. A stream is a sequence of characters read from or
written to an IO device. 

 本书多数示例使用的是iostream 库,iostream库中最重要的两个类型是istreamostream

他们分别代表输入流和输出流。 流是一种从IO设备中读取或者写入的字符序列。

 

计算机英文

0001 transaction 事务

0002 terminate 结束 解雇 使终结

0003 concept 概念 观念 思想

0004 fundamental 基础的 基本的 重要的

0005 particular 特别的;详细的;独有的;挑剔的

0006 colleague 同事

0007 concentrate 专注 专心 注意 集中

0008 Naming Convention 命名约定 命令规则

0009 suffix 后缀 (文件名后缀 etc.)

0010 prompt adj. 敏捷的;迅速的;v. 促使;导致 n. 激励;提示

0011 omitted 省略 遗漏 删掉

 

你可能感兴趣的:(学习笔记)