C++初级教程
C++初级教程封面图

C++初级教程

(美) 普拉达 (Prata,S.) , 著

出版社:人民邮电出版社

年代:2012

定价:128.0

书籍简介:

C++是在C语言基础上开发的一种集面向对象编程、通用编程和传统的过程化编程于一体的编程语言,是C语言的超集。本书通过大量短小精悍的程序详细而全面地阐述了C++的基本概念和技术。

书籍目录:

上册

Introduction

1 Getting Started with C++

Learning C++: What Lies Before You

The Origins of C++: A Little History

Portability and Standards

The Mechanics of Creating a Program

Summary

2 Setting Out to C++

C++ Initiation

C++ Statements

More C++ Statements

Functions

Summary

Chapter Review

Programming Exercises

3 Dealing with Data

Simple Variables

The const Qualifier

Floating-Point Numbers

C++ Arithmetic Operators

Summary

Chapter Review

Programming Exercises

4 Compound Types

Introducing Arrays

Strings

Introducing the string Class

Introducing Structures

Unions

Enumerations

Pointers and the Free Store

Pointers, Arrays, and Pointer Arithmetic

Combinations of Types

Array Alternatives

Summary

Chapter Review

Programming Exercises

5 Loops and Relational Expressions

Introducing for Loops

The while Loop

The do while Loop

The Range-Based for Loop (C++11)

Loops and Text Input

Nested Loops and Two-Dimensional Arrays

Summary

Chapter Review

Programming Exercises

6 Branching Statements and Logical Operators

The if Statement

Logical Expressions

The cctype Library of Character Functions

The ?: Operator

The switch Statement

The break and continue Statements

Number-Reading Loops

Simple File Input/Output

Summary

Chapter Review

Programming Exercises

7 Functions: C++'s Programming Modules

Function Review

Function Arguments and Passing by Value

Functions and Arrays

Functions and Two-Dimensional Arrays

Functions and C-Style Strings

Functions and Structures

Functions and string Class Objects

Functions and array Objects

Recursion

Pointers to Functions

Summary

Chapter Review

Programming Exercises

8 Adventures in Functions

C++ Inline Functions

Reference Variables

Default Arguments

Function Overloading

Function Templates

Summary

Chapter Review

Programming Exercises

9 Memory Models and Namespaces

Separate Compilation

Storage Duration, Scope, and Linkage

Namespaces

Summary

Chapter Review

Programming Exercises

10 Objects and Classes

Procedural and Object-Oriented Programming

Abstraction and Classes

Class Constructors and Destructors

Knowing Your Objects: The this Pointer

An Array of Objects

Class Scope

Abstract Data Types

Summary

Chapter Review

Programming Exercises

11 Working with Classes

Operator Overloading

Time on Our Hands: Developing an Operator Overloading Example

Introducing Friends

Overloaded Operators: Member Versus Nonmember Functions

More Overloading: A Vector Class

Automatic Conversions and Type Casts for Classes

Summary

Chapter Review

Programming Exercises

12 Classes and Dynamic Memory Allocation

Dynamic Memory and Classes

The New, Improved String Class

Things to Remember When Using new in Constructors

Observations About Returning Objects

Using Pointers to Objects

Reviewing Techniques

A Queue Simulation

Summary

Chapter Review

Programming Exercises

下册

13 Class Inheritance

Beginning with a Simple Base Class

Inheritance: An Is-a Relationship

Polymorphic Public Inheritance

Static and Dynamic Binding

Access Control: protected

Abstract Base Classes

Inheritance and Dynamic Memory Allocation

Class Design Review

Summary

Chapter Review

Programming Exercises

14 Reusing Code in C++

Classes with Object Members

Private Inheritance

Multiple Inheritance

Class Templates

Summary

Chapter Review

Programming Exercises

15 Friends, Exceptions, and More

Friends

Nested Classes

Exceptions

Runtime Type Identification

Type Cast Operators

Summary

Chapter Review

Programming Exercises

16 The string Class and the Standard Template Library

The string Class

Smart Pointer Template Classes

The Standard Template Library

Generic Programming

Function Objects (a.k.a. Functors)

Algorithms

Other Libraries

Summary

Chapter Review

Programming Exercises

17 Input, Output, and Files

An Overview of C++ Input and Output

Output with cout

Input with cin

File Input and Output

Incore Formatting

Summary

Chapter Review

Programming Exercises

18 Visiting with the New C++ Standard

C++11 Features Revisited

Move Semantics and the Rvalue Reference

New Class Features

Lambda Functions

Wrappers

Variadic Templates

More C++11 Features

Language Change

What Now?

Summary

Chapter Review

Programming Exercises

Appendixes

A Number Bases

B C++ Reserved Words

C The ASCII Character Set

D Operator Precedence

E Other Operators

F The string Template Class

G The Standard Template Library Methods and Functions

H Selected Readings and Internet Resources

I Converting to ISO Standard C++

J Answers to Chapter Reviews

Index

……

内容摘要:

C++是在C语言基础上开发的一种集面向对象编程、泛型编程和过程化编程于一体的编程语言,是C语言的超集。《C++ Primer Plus(第6版)(英文版)(套装上下册)》是根据2003年的ISO/ANSI C++标准编写的,通过大量短小精悍的程序详细而全面地阐述了C++的基本概念和技术,并专辟一章介绍了C++11新增的功能。
全书分18章和10个附录,分别介绍了C++程序的运行方式、基本数据类型、复合数据类型、循环和关系表达式、分支语句和逻辑运算符、函数重载和函数模板、内存模型和名称空间、类的设计和使用、多态、虚函数、动态内存分配、继承、代码重用、友元、异常处理技术、string类和标准模板库、输入/输出、C++11新增功能等内容。
《C++ Primer Plus(第6版)(英文版)(套装上下册)》针对C++初学者,书中从C语言基础知识开始介绍,然后在此基础上详细阐述C++新增的特性,因此不要求读者有C语言方面的背景知识。
《C++ Primer Plus(第6版)(英文版)(套装上下册)》可作为高等院校C++课程的教材,也可供初学者自学C++时使用。

书籍规格:

书籍详细信息
书名C++初级教程站内查询相似图书
9787115288240
如需购买下载《C++初级教程》pdf扫描版电子书或查询更多相关信息,请直接复制isbn,搜索即可全网搜索该ISBN
出版地北京出版单位人民邮电出版社
版次1版印次1
定价(元)128.0语种英文
尺寸26 × 19装帧平装
页数 600 印数 3000

书籍信息归属:

C++初级教程是人民邮电出版社于2012.7出版的中图分类号为 TP312 的主题关于 C语言-程序设计-教材-英文 的书籍。