C++ 11 lessons

已标记关键词 清除标记
Exploring C++ divides C++ up into bite-sized chunks that will help you learn the language one step at a time. Assuming no familiarity with C++, or any other C-based language, you’ll be taught everything you need to know in a logical progression of small lessons that you can work through as quickly or as slowly as you need. C++ can be a complicated language. Writing even the most straight-forward of programs requires you to understand many disparate aspects of the language and how they interact with one another. C++ doesn’t lend itself to neat compartmentalization the way other languages do. Rather than baffle you with complex chapters explaining functions, classes and statements in isolation we’ll focus on teaching you how to achieve results. By learning a little bit of this and a little of that you’ll soon have amassed enough knowledge to be writing non-trivial programs and will have built a solid foundation of experience that puts those previously baffling concepts into context. In this fully-revised second edition of Exploring C++, you’ll learn how to use the standard library early in the book. Next, you’ll learn to work with operators, objects and data-sources in increasingly realistic situations. Finally, you’ll start putting the pieces together to create sophisticated programs of your own design confident that you’ve built a firm base of experience from which to grow. What you’ll learn Learn how to use C++ from first principles in a practical hands-on way. Understand how to use Custom types, virtual functions and objects to structure your code Build your own function templates, namespaces and containers from the ground up. Put everything together to create sophisticated programs that work with pointers, dynamic memory and overloaded functions to achieve the results you want. Who this book is for Read this book if you want to learn C++ and have a basic understanding of how computer programs work. You don’t need to know a C-based language before you start, but a basic understanding of how programs are structured is helpful. Table of Contents Part 1: The Basics – Honing your tools Part 1: The Basics -Reading C++ Code Part 1: The Basics -Integer Expressions Part 1: The Basics -Strings Part 1: The Basics -Simple Input Part 1: The Basics -Error Messages Part 1: The Basics -For Loops Part 1: The Basics -Formatted Output Part 1: The Basics -Arrays and Vectors Part 1: The Basics -Incrementand Decrement Part 1: The Basics -Conditions and Logic Part 1: The Basics -Compound Statements Part 1: The Basics -Introduction to File I/O Part 1: The Basics -The Map Data Structure Part 1: The Basics -Type Synonyms Part 1: The Basics -Characters Part 1: The Basics -Character Categories Part 1: The Basics -Case-Folding Part 1: The Basics -Writing Functions Part 1: The Basics -Function Arguments Part 1: The Basics -Using Algorithms Part 1: The Basics -Overloading Function Names Part 1: The Basics -Big and Little Numbers Part 1: The Basics -Very Big and Very Little Numbers Part 1: The Basics -Documentation Part 1: The Basics -Project1: Body-Mass Index Part 2: Custom Types – Custom Types Part 2: Custom Types – Overloading Operators Part 2: Custom Types – Custom I/O Operators Part 2: Custom Types – Assignment and Initialization Part 2: Custom Types – Writing Classes Part 2: Custom Types – More About Member Functions Part 2: Custom Types – Access Levels Part 2: Custom Types – Introduction to Object-Oriented Programming Part 2: Custom Types – Inheritance Part 2: Custom Types – Virtual Functions Part 2: Custom Types – Classes and Types Part 2: Custom Types – Declarations and Definitions Part 2: Custom Types – Using Multiple Source Files Part 2: Custom Types – Function Objects Part 2: Custom Types – Useful Algorithms Part 2: Custom Types – Iterators Part 2: Custom Types – Exceptions Part 2: Custom Types – More Operators Part 2: Custom Types – Project2: Fixed-point Numbers Part 3: Generic Programming – Function Templates Part 3: Generic Programming – Class Templates Part 3: Generic Programming – Template Specialization Part 3: Generic Programming – Partial Specialization Part 3: Generic Programming – Names and Namespaces Part 3: Generic Programming – Containers Part 3: Generic Programming – International Characters Part 3: Generic Programming – Locales and Facets Part 3: Generic Programming – TextI/O Part 3: Generic Programming – Project3: Currency Type Part 4: Real Programming – Pointers Part 4: Real Programming – Dynamic Memory Part 4: Real Programming – Exception-Safety Part 4: Real Programming – Old-Fashioned Arrays Part 4: Real Programming – SmartPointers Part 4: Real Programming – Working with Bits Part 4: Real Programming – Enumerations Part 4: Real Programming – Multiple Inheritance Part 4: Real Programming – Traits and Policies Part 4: Real Programming – Names and Templates Part 4: Real Programming – Overloaded Functions Part 4: Real Programming – Metaprogramming Part 4: Real Programming – Project4: Calculator Book Details Paperback: 656 pages Publisher: Apress; 2 edition (December 19, 2013) Language: English ISBN-10: 1430261935 ISBN-13: 978-1430261933
相关推荐
《Inside The C++ Object Model》专注于C++对象导向程序设计的底层机制,包括结构式语意、暂时性对象的生成、封装、继承,以及虚拟——虚拟函数和虚拟继承。这本书让你知道:一旦你能够了解底层实现模型,你的程序代码将获得多么大的效率。Lippman澄清了那些关于C++额外负荷与复杂度的各种错误信息和迷思,但也指出其中某些成本和利益交换确实存在。他阐述了各式各样的实现模型,指出它们的进化之道及其本质因素。本书涵盖了C++对象模型的语意暗示,并指出这个模型是如何影响你的程序的。 本书重点:探索“对象导向程序所支持的C++对象模型”下的程序行为。对于“对象导向性质之基础实现技术”以及“各种性质背后的隐含利益交换”提供一个清楚的认识。检验由程序变形所带来的效率冲击。提供丰富的程序范例、图片,以及对象导向观念和底层对象模型之间的效率测量。 C++成山似海的书籍堆中,这一本不是婴幼儿奶粉,也不是较大婴儿奶粉,它是成人专用的低脂高钙特殊奶粉。 对于C++底层机制感兴趣的读者,这本书会给你“漫卷诗书喜欲狂”的感觉。 了解C++ Object Model,是学习Component Object Model的最短路线。 如果你是一位C++程序员,渴望对于底层知识获得一个完整的了解,那么Inside The C++ Object Model正适合你。 关于作者:Stanley Lippman目前是华特迪斯尼主题动画公司(Walt Disney Feature Animation)的主要软件工程师。他曾经在AT&T贝尔实验室领导cfront 3.0和2.1版的编译器开发小组。他也是贝尔实验室中由Bjame Stroustrup所领导的Foundation专案组中的一员,负责对象模型并研究C++程序开发环境。Stan著有极为成功的C++ Primer一书,也发表过许多C++方面的论文。Stan最近刚从C++ Report的编辑位置上“退隐”,他曾在那个位置上做了4年。他的C++论述遍及全球。 关于译者:侯捷,海峡两岸著名的电脑技术自由作家,对于技术的钻研和发表,有独特的品性与坚持。作品涵盖著、译、评三方面,散见于各种刊特、媒体、网站论坛,深受读者喜爱和尊敬。 作者简介: Stanley B.Lippman的职业是提供关于C++和面向对象的训练、咨询、设计和指导。他在成为一名独立咨询顾问之前,曾经是迪士尼动化公司的首席软件设计师。当他在AT&T Bell实验室的时候,领导了cfront 3.0版本和2.1版本的编译器开发组。他也是Bjarne Stroustrup领导的Bell实验室Foundation项目的成员之一,负责C++程序设计环境中的对象模型部分。他还撰写了许多关于C++的文章。目前他已受雇于微软公司,负责Visual C++项目。   目录:    本立道生(侯捷 译序) 目录 前言(Stanley B.Lippman) 第0章 导读(译者的话) 第1章 关于对象(Object Lessons) 1.1 C++模式模式(The C++ Object Model) 1.2 关键词所带来的差异(A Keyword Distinction) 1.3 对象的差异(An Object Distinction) 第2章 构造函数语意学(The Semantics of constructors) 2.1 Default Constructor的建构操作 2.2 Copy Constructor的建构操作 2.3 程序转换语意学(Program Transformation Semantics) 2.4 成员们的初始化队伍(Member Initialization List) 第3章 Data语意学(The Semantics of Data) 3.1 Data Member的绑定(The Binding of a Data Member) 3.2 Data Member的布局(Data Member Layout) 3.3 Data Member的存取 3.4 “继承”与Data Member 3.5 对象成员的效率(Object Member Efficiency) 3.6 指向Data Members的指针(Pointer to Data Members) 第4章 Function语意学(The Semantics of Function) 4.1 Member的各种调用方式 4.2 Virtual Member Functions(虚拟成员函数) 4.3 函数的效能 4.4 指向Member Functions的指针(Pointer-to-Member Functions) 4.5 Inline Functions 第5章 构造、解构、拷贝 语意学(Semantics of Construction,Destruction,and Copy) 5.1 无继承情况下的对象构造 5.2 继承体系下的对象构造 5.3 对象复制语意学(Object Copy Semantics) 5.4 对象的功能(Object Efficiency) 5.5 解构语意学(Semantics of Destruction) 第6章 执行期语意学(Runting Semantics) 6.1 对象的构造和解构(Object Construction and Destruction) 6.2 new和delete运算符 6.3 临时性对象(Temporary Objects) 第7章 站在对象模型的类端(On the Cusp of the Object Model) 7.1 Template 7.2 异常处理(Exception Handling) 7.3 执行期类型识别(Runtime Type Identification,RTTI) 7.4 效率有了,弹性呢?
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页