C++Primer中文版第4版中英对照一.pdf
《C++Primer中文版第4版中英对照一.pdf》由会员分享,可在线阅读,更多相关《C++Primer中文版第4版中英对照一.pdf(120页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、C+Primer中 文 版(第 4 版)(中 英 对 照)一 PrefaceC+Primer,Fourth Edition,provides a comprehensive introduction to the C+language.As a primer,it provides a clear tutorialapproach to the language,enhanced by numerous examples and other learning aids.Unlike most primers,it also provides a detaileddescription of t
2、he language,with particular emphasis on cunent and effective programming techniques.本 书 全 面 介 绍 了 C+语 言。作 为 一 本 入 门 书(Primer),它 以 教 程 的 形 式 对 C+语 言 进 行 清 晰 的 讲 解,并 辅 以 丰 富 的 示 例 和 各 种 学 习 辅 助 手 段。与 大 多 数 入 门 教 程 不 同,本 书 对 C+语 言 本 身 进 行 了 详 尽 的 描 述,并 特 别 着 重 介 绍 了 目 前 通 行 的、行 之 有 效 的 程 序 设 计 技 巧。Coun
3、tless programmers have used previous editions of C+Primer to learn C+.In that time C+has matured greatly.Over theyears,the focus of the languageand of C+programmershas grown beyond a concentration on run-time efficiency to focus on waysof making programmers more efficient.With the widespread availab
4、ility of the standard library,it is possible to use and learn C+more effectively than in the past.This revision of the C+Primer reflects these new possiblities.无 数 程 序 员 曾 使 用 本 书 的 前 几 个 版 本 学 习 C+,在 此 期 间 C+也 逐 渐 发 展 成 熟。这 些 年 来,C+语 言 的 发 展 方 向 以 及 C+程 序 员 的 关 注 点,已 经 从 以 往 注 重 运 行 时 的 效 率,转 到 千 方
5、 百 计 地 提 高 程 序 员 的 编 程 效 率 上。随 着 标 准 库 的 广 泛 可 用,我 们 现 在 能 够 比 以 往 任 何 时 候 更 高 效 地 学 习 和 使 用 C+。本 书 这 一 版 本 充 分 体 现 了 这 一 点。Changes to the Fourth Edition第 四 版 的 改 动 In this edition,we have completely reorganized and rewritten the C+Primer to highlight modern styles of C+programming.Thisedition gives
6、 center stage to using the standard library while deemphasizing techniques for low-level programming.We introducethe standard library much earlier in the text and have reformulated the examples to take advantage of library facilities.We have alsostreamlined and reordered the presentation of language
7、 topics.为 了 体 现 现 代 C+编 程 风 格,我 们 重 新 组 织 并 重 写 了 本 书。书 中 不 再 强 调 低 层 编 程 技 术,而 把 中 心 转 向 标 准 库 的 使 用。书 中 很 早 就 开 始 介 绍 标 准 库,示 例 也 已 经 重 新 改 写,充 分 利 用 了 标 准 库 设 施。我 们 也 对 语 言 主 题 叙 述 的 先 后 次 序 进 行 了 重 新 编 排,使 讲 解 更 加 流 畅。In addition to restructuring the text,we have incorporated several new element
8、s to enhance the readers understanding.Each chapterconcludes with a Chapter Summary and glossary of Defined Terms,which recap the chapters most important points.Readers shoulduse these sections as a personal checklist:If you do not understand a term,restudy the corresponding part of the chapter.除 重
9、新 组 织 内 容 外,为 了 便 于 读 者 理 解,我 们 还 增 加 了 几 个 新 的 环 节。每 一 章 都 新 增 了“小 结”和“术 语”,概 括 本 章 要 点。读 者 可 以 利 用 这 些 部 分 进 行 自 我 检 查;如 果 发 现 还 有 不 理 解 的 概 念,可 以 重 新 学 习 该 章 中 的 相 关 部 分。Weve also incorporated a number of other learning aids in the body of the text:书 中 还 加 入 了 下 述 几 种 学 习 辅 助 手 段:Important terms
10、are indicated in bold;important terms that we assume are already familiar to the reader are indicated in bold italics.Each term appears in the chapters Defined Terms section.重 要 术 语 用 黑 体 表 示,我 们 认 为 读 者 已 经 熟 悉 的 重 要 术 语 则 用 楷 体 表 示 0 这 些 术 语 都 会 出 现 在 的“术 语”部 分。Throughout the book,we highlight par
11、ts of the text to call attention to important aspects of the language,warn about commonpitfalls,suggest good programming practices,and provide general usage tips.We hope that these notes will help readers morequickly digest important concepts and avoid common pitfalls.书 中 用 特 殊 版 式 突 出 标 注 的 文 字,是 为
12、 了 向 读 者 提 醒 语 言 的 重 要 特 征,警 示 常 见 的 错 误,标 明 良 好 的 编 程 实 践,列 出 通 用 的 使 用 技 巧。希 望 这 些 标 注 可 以 帮 助 读 者 更 快 地 消 化 重 要 概 念,避 免 犯 常 见 错 误。To make it easier to follow the relationships among features and concepts,we provide extensive forward and backwardcross-references.为 了 更 易 于 理 解 各 种 特 征 或 概 念 间 的 关 系
13、,书 中 大 量 使 用 了 前 后 交 叉 引 用。We have provided sidebar discussions that focus on important concepts and supply additional explanations for topics thatprogrammers new to C+often find most difficult.对 于 某 些 重 要 概 念 和 C+新 手 最 头 疼 的 问 题,我 们 进 行 了 额 外 的 讨 论 和 解 释。这 部 分 也 以 特 殊 版 式 标 出。Learning any programmi
14、ng language requires writing programs.To that end,the primer provides extensive examples throughout thetext.Source code for the extended examples is available on the Web at the following URL:学 习 任 何 程 序 设 计 语 言 都 需 要 编 写 程 序。因 此,本 提 供 了 大 量 的 示 例。所 有 示 例 的 源 代 码 可 以 从 下 列 网 址 获 得:hllD:primerWhat has
15、nt changed from earlier versions is that the book remains a comprehensive tutorial introduction to C+.Our intent is toprovide a clear,complete and correct guide to the language.We teach the language by presenting a series of examples,which,inaddition to explaining language features,show how to make
16、the best use of C+.Although knowledge of C(the language on whichC+was originally based)is not assumed,we do assume the reader has programmed in a modern block-structured language.万 变 不 离 其 宗,本 书 保 持 了 前 几 版 的 特 色,仍 然 是 一 部 全 面 介 绍 C+的 教 程。我 们 的 目 标 是 提 供 一 本 清 晰、全 面、准 确 的 指 南 性 读 物。我 们 通 过 讲 解 一 系 列
17、 示 例 来 教 授 C+语 言,示 例 除 了 解 释 语 言 特 征 外,还 展 示 了 如 何 善 用 这 门 语 言。虽 然 读 者 不 需 要 事 先 学 过 c 语 言(C+最 初 的 基 础)的 知 识,但 我 们 假 定 读 者 已 经 掌 握 了 一 种 现 代 结 构 化 语 言。Structure of This Book本 书 结 构 C+Primer provides an introduction to the International Standard on C+,covering both the language proper and the extensi
18、velibrary that is part of that standard.Much of the power of C+comes from its support for programming with abstractions.Learningto program effectively in C+requires more than learning new syntax and semantics.Our focus is on how to use the features ofC+to write programs that are safe,that can be bui
19、lt quickly,and yet offer performance comparable to the sorts of low-levelprograms often written in C.本 介 绍 了 C+国 际 标 准,既 涵 盖 语 言 的 特 征,又 讲 述 了 也 是 标 准 组 成 部 分 的 丰 富 标 准 库。C+的 强 大 很 大 程 度 上 来 自 它 支 持 抽 象 程 序 设 计。要 学 会 用 C+高 效 地 编 程,只 是 掌 握 句 法 和 语 义 是 远 远 不 够 的。我 们 的 重 点 在 于,教 会 读 者 怎 样 利 用 C+的 特 性,快
20、 速 地 写 出 安 全 的 而 且 性 能 可 与 C 语 言 低 层 程 序 相 媲 美 的 程 序。C+is a large language and can be daunting to new users.Modern C+can be thought of as comprising three parts:C+是 一 种 大 型 的 编 程 语 言,这 可 能 会 吓 倒 一 些 新 手。现 代 C+可 以 看 成 由 以 下 三 部 分 组 成:The low-level language,largely inherited from C低 级 语 言,多 半 继 承 自 Co
21、More advanced language features that allow us to define our own data types and to organize large-scale programs and systems更 高 级 的 语 言 特 征,用 户 可 以 借 此 定 义 自 己 的 数 据 类 型,组 织 大 规 模 的 程 序 和 系 统。The standard library,which uses these advanced features to provide a set of useful data structures and algori
22、thms标 准 库,使 用 上 述 高 级 特 征 提 供 一 整 套 有 用 的 数 据 结 构 和 算 法。Most texts present C+in this same order:They start by covering the low-level details and then introduce the the more advancedlanguage features.They explain the standard library only after having covered the entire language.The result,all too of
23、ten,is thatreaders get bogged down in issues of low-level programming or the complexities of writing type definitions and never reallyunderstand the power of programming in a more abstract way.Needless to say,readers also often do not learn enough to build theirown abstractions.多 数 C+教 材 按 照 下 面 的 顺
24、 序 展 开:先 讲 低 级 细 节,再 介 绍 更 高 级 的 语 言 特 征;在 讲 完 整 个 语 言 后 才 开 始 解 释 标 准 库。结 果 往 往 使 读 者 纠 缠 于 低 级 的 程 序 设 计 问 题 和 复 杂 类 型 定 义 的 编 写 等 细 节,而 不 能 真 正 领 会 抽 象 编 程 的 强 大,更 不 用 说 学 到 足 够 的 知 识 去 创 建 自 己 的 抽 象 了。In this edition we take a completely different tack.We start by covering the basics of the lang
25、uage and the library together.Doing soallows you,the reader,to write significant programs.Only after a thorough grounding in using the library and writing the kinds ofabstract programs that the libary allowsdo we move on to those features of C+that will enable you to write your own abstractions.本 版
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Primer 中文版 中英对照
限制150内