多产鱼 发表于 2025-3-28 16:58:33

Reading C Code,I suspect you already have some knowledge of C++. Maybe you already know C, Java, Perl, or other C-like languages. Maybe you know so many languages that you can readily identify common elements. Let’s test my hypothesis. Take a few minutes to read Listing 2-1, then answer the questions that follow it.

种属关系 发表于 2025-3-28 20:24:50

http://reply.papertrans.cn/33/3203/320261/320261_42.png

Mortar 发表于 2025-3-29 00:00:34

http://reply.papertrans.cn/33/3203/320261/320261_43.png

慌张 发表于 2025-3-29 06:14:54

http://reply.papertrans.cn/33/3203/320261/320261_44.png

单片眼镜 发表于 2025-3-29 10:26:56

For Loops,Explorations 2 and 3 show some simple . loops. This Exploration introduces the . loop’s big brother, the . loop.

消毒 发表于 2025-3-29 11:56:18

Formatted Output,In Exploration 4, you used tab characters to line up output neatly. Tabs are useful but crude. This Exploration introduces some of the features that C++ offers to format output nicely, such as setting the alignment, padding, and width of output fields.

过分 发表于 2025-3-29 17:09:12

Algorithms and Iterators,The previous Exploration introduced vectors and iterators using . to sort a vector of integers. This Exploration examines iterators in more depth and introduces generic algorithms, which perform useful operations on iterators.

circuit 发表于 2025-3-29 20:33:58

Increment and Decrement,The previous Exploration introduced the increment (.) operator to advance an iterator. This operator works on numeric types as well. Not surprisingly, it has a decrement counterpart: .. This Exploration takes a closer look at these operators, which appear so often, they are part of the language name.

patella 发表于 2025-3-30 03:51:40

Conditions and Logic,You first met the . type in Exploration 2. This type has two possible values: . and ., which are reserved keywords (unlike in C). Although most Explorations have not needed to use the . type, many have used logical expressions in loop and .-statement conditions. This Exploration examines the many aspects of the . type and logical operators.

atopic-rhinitis 发表于 2025-3-30 04:30:03

http://reply.papertrans.cn/33/3203/320261/320261_50.png
页: 1 2 3 4 [5] 6 7
查看完整版本: Titlebook: Exploring C++ 11; Ray Lischner Book 20132nd edition Ray Lischner 2013