[试译] C++ Primer Plus (Fifth Edition) - Introduction - part 1
2013-03-21 23:24 wid 阅读(1055) 评论(0) 编辑 收藏 举报C++ Primer Plus (Fifth Edition) - Introduction - part 1
译者前言:
Preface of Translator:
1. 为什么要译这本书?
1. Why translate of this book?
答: 提高英语, 学习C++。
Answer: To improve English, Learning C Plus Plus.
注意:
笔者目前的英语战斗力不足5, 所译内容不具有任何权威性, 译文的任何观点均不代表原文所要表达的观点, 请谨慎参阅。
此外, 这本书的中文版早已上市, 且第六版英/中文本也已经出版, 笔者的译文仅为提高英语水平和学习C++, 不作任何商业用途。
--------------------------------------------------
Book Name: C++ Primer Plus
书籍名称: C++ Primer Plus
Author: Stephen Prata
作者: [美] Stephen Prata
----------
Stephen Prata teaches astronomy, physics, and computer science at the College of Marin in Kentfield, California. He received his B.S from the California Institute of Technology and his Ph.D. from the University of California, Berkeley. Stephen has authored or coauthored more than a dozen books for The White Group. He worte The Waite Group's New C Primer Plus, which received the Compture Press Association's 1990 Best How-to Computer Book Award, and The Waite Group's C++ Primer Plus, nominated for the Computer Press Association's Best How-to Computer Book Award in 1991.
Stephen Prata 在加利福尼亚肯特菲尔的马林学院教授天文学、物理和计算机科学。他从加州理工学院获得了他的理学士学位(毕业于加州理工学院), 在加州大学伯利克里分校获得博士学位。Stephen 本人或与其他人合著的书超过12本。他的《The Waite Group's New C Primer Plus》曾获得1990年的计算机出版联合会年度最佳"How-to"计算机图灵奖, 此外, 他的《The Waite Group's C++ Primer Plus》获得计算机出版联合协会1991年度最佳"How-to"图灵奖的提名。
DEDICATION
To my colleagues and student at the College of Marin, with whom it is a pleasure to work.-- Stephen Prata
献给
此书仅献给我的同事、马林学院的学生, 以及热爱工作的人们。—— Stephen Prata
ACKNOWLEDGMENTS
鸣谢
Acknowledgments for the Fifth Edition
第五版鸣谢
I'd like to thank Loretta Yates and Songlin Qiu of Sams Publishing for guiding and managing this project. Thanks to my colleague Fred Schmitt for several useful suggestions. Once again, I'd like to thank Ron Liechty of Metrowerks for his helpfulness.
我要感谢 Loretta Yates 和 Sams 出本社的 Songlin Qiu 的指导与对本书创作时的管理。感谢我的同事 Fred Schmitt 给出的数个有用的建议。再一次, 我要感谢 Metrowerks 公司的 Ron Liechty 对我的帮助。
WE WANT TO HEAR FROM YOU!
我们希望听到你的声音!
As the reader of this book, you are our most important critic and commentator. We value your opinion and want to know what we're doing right, what we could do better, what areas you'd like to see us publish in, and any ohter words of wisdom you're willing to pass our way.
作为这本书的读者, 你就是我们最重要的批判家和评论家。我们会重视你的观点, 因为我们想知道我们怎样做才是正确的, 如何才能做的更好, 哪些方面是你期待的内容, 如果你乐意, 你的任何真知灼见都可以通过我们的方式告诉我们。
As an associate publisher for Sams Publishing, I welcome your comments. You can email or write me directly to let me know what you did or did't like about this book -- as well as what we can do to make our books better.
作为 Sams 出版社的联合出版者, 欢迎你们的评论。你可以发送 E-mail 或者直接写信告诉我你喜欢或不喜欢这本书的什么地方, 以及我们应该做些什么才能让这本书变得更好。
Please note that I cannot help you with technical problem related to the topic of this book. We do have a User Services group, however, where I will forward specific technical question related to the book.
请注意, 对于这本书技术上的问题我帮不了你。我们有一个用户服务组。然而, 我会在以后书中讲述这些具体的技术问题。
When you write, please be sure to include this book's title and author as well as your name, email address. and phone number. I will carefully review your comments and share them with the author and editors who worked on the book.
当你写的时候, 请确保包含这本书的标题以及作者, 以及你的姓名, 电子邮件地址和联系电话。我会认真的阅读你的评论并且把它分享给这本书的作者和编辑。
Email: feedback@samspublishing.com
Mail: Michael Setphens
Associate Publisher
Sams Publishing
800 East 96th Street
Indianappolis, IN 46240 USA
For more information about this book or author Sams Publishing title, visit our web site at www.samspublishing.com . Type the ISBN(0672326973) or the title of a book in the Search filed to find the page you're looking for.
更多关于这本书或者 Sams 出版社的信息请访问我们的网站, www.samspublishing.com 。在搜索框输入书籍的ISBN(0672326973)或者书的标题查找相关的页面。
INTRODUCTION
介绍
Preface to the Fifth Edition
第五版前言
Learning C++ is an adventure of discovery, particularly because the language accommodates several programming paradigms, including object-oriented programming, generic programming, and the tradition procedural programming. C++ was a moving target as the language added new features, but now, with the ISO/ANSI C++ Standard, Second Edition(2003), in place, the language has stabilized, Contemporary compilers support most or all of the features mandated by the standard, and programmers hava had time to get used to applying these features. The fifth edition of this book, C++ Primer Plus, reflects the ISO/ANSI standard and describes this matured version of C++.
学习C++是一次冒险之旅, 特别是在这种语言包含了数种编程模式下, 它包括了面向对象编程、泛型编程和传统的面向过程编程。曾经, C++随着新特性的不断添加成为一个不稳定的语言, 不过随着 ISO/ANSI 组织在2003年对其制定C++第二版标准后, 现已稳定下来。现代的编译器已支持绝大部分或者全部的特性, 程序员需要花费一定时间来适应这些新特性。第五版的这本书, 反映的是 ISO/ANSI 标准并且将介绍这个成熟版本的C++。
C++ Primer Plus discusses the basic C language and presents C++ features, making this book self-contained. It presents C++ fundamentals and illustrates them with short, to-the-point programs that are easy to copy and experiment with. You'll learn about input/output(I/O), how to make programs perform repetitive tasks and make choice, the many ways to handle data, and how to use funtions. You'll learn about the many features C++ has added to C, including the following:
本书将讨论基础的C编程和C++的新特性, 使两者成为一体。书中介绍了C++基本概念并通过一些短小的程序来阐明它们。这些示例程序都比较容易进行复制和测试。你将会学到有关输入/输出(I/O)、如何让程序反复执行相关的任务和作出选择、多种方式处理数据以及如何使用函数等。 你还将学习到有关C++在C语言基础上增加的许多新特性, 其中包括:
· Classes and objects
· 类和对象
· Inheritance
· 继承
· Polymorphism, virtual functions, and runtime type identification(RTTI)
· 多态, 虚函数, 运行时类型识别(RTTI)
· Function overloading
· 函数重载
· Reference variables
· 引用变量
· Generic, or type-independent, programming, as provided by templates and Standard Template Library(STL)
· 泛型或独立类型的编程, 由模板和标准模板库(STL)提供。
· The exception mechanism for handling error conditions
· 处理错误条件的异常机制
· Namespcae for managing names of functions, classes, and variables
· 用于管理函数、类、变量名的命名空间
--------------------
wid, 2013.03.21