Muutke küpsiste eelistusi

Cplusplus in 24 Hours, Sams Teach Yourself 6th edition [Pehme köide]

  • Formaat: Paperback / softback, 480 pages, kõrgus x laius x paksus: 230x180x26 mm, kaal: 720 g
  • Sari: Sams Teach Yourself
  • Ilmumisaeg: 13-Oct-2016
  • Kirjastus: Sams Publishing
  • ISBN-10: 0672337460
  • ISBN-13: 9780672337468
Teised raamatud teemal:
  • Formaat: Paperback / softback, 480 pages, kõrgus x laius x paksus: 230x180x26 mm, kaal: 720 g
  • Sari: Sams Teach Yourself
  • Ilmumisaeg: 13-Oct-2016
  • Kirjastus: Sams Publishing
  • ISBN-10: 0672337460
  • ISBN-13: 9780672337468
Teised raamatud teemal:
A hands-on guide to the C++ programming language provides readers with short, practical examples that illustrate key concepts, syntax and techniques. Original.

Sams Teach Yourself C++ in 24 Hours is a hands-on guide to the C++ programming language. Readers are provided with short, practical examples that illustrate key concepts, syntax, and techniques.

 

Step-by-step instructions carefully walk you through the most common C++ programming tasks

Quizzes and Exercises at the end of each chapter help you test yourself to make sure you’re ready to go on

Starter Kit software provides everything you need to create and compile C++ programs on any platform–Windows, Mac or Linux

 

Learn how to…

  • Install and use a C++ compiler for Windows, Mac OS X or Linux
  • Build object-oriented programs in C++
  • Master core C++ concepts such as functions, classes, arrays, and pointers
  • Add rich functionality with linked lists and templates
  • Debug your programs for flawless code
  • Learn exception and error-handling techniques
  • Discover what’s new in C++0x, the next version of C++
Introduction 1(4)
Part I Beginning C++
Hour 1 Writing Your First Program
5(8)
Using C++
5(1)
Compiling and Linking the Source Code
6(1)
Creating Your First Program
7(6)
Hour 2 Organizing the Parts of a Program
13(14)
Reasons to Use C++
13(4)
The Parts of a Program
17(2)
Comments
19(1)
Functions
20(7)
Hour 3 Creating Variables and Constants
27(16)
What Is a Variable?
27(5)
Defining a Variable
32(1)
Assigning Values to Variables
33(1)
Using Type Definitions
34(2)
Constants
36(2)
Auto-Typed Variables
38(5)
Hour 4 Using Expressions, Statements, and Operators
43(18)
Statements
43(1)
Expressions
44(1)
Operators
45(7)
If-Else Conditional Statements
52(4)
Logical Operators
56(2)
Tricky Expression Values
58(3)
Hour 5 Calling Functions
61(18)
What Is a Function?
61(1)
Declaring and Defining Functions
61(3)
Using Variables with Functions
64(3)
Function Parameters
67(1)
Returning Values from Functions
68(2)
Default Function Parameters
70(2)
Overloading Functions
72(1)
Auto-Typed Return Values
73(6)
Hour 6 Controlling the Flow of a Program
79(16)
Looping
79(1)
While Loops
79(4)
do-while Loops
83(1)
For Loops
84(5)
Switch Statements
89(6)
Hour 7 Storing Information in Arrays and Strings
95(14)
What Is an Array?
95(2)
Writing Past the End of Arrays
97(1)
Initializing Arrays
98(1)
Multidimensional Arrays
99(3)
Character Arrays
102(2)
Copying Strings
104(1)
Reading Arrays with Foreach Loops
105(4)
Part II Classes
Hour 8 Creating Basic Classes
109(14)
What Is a Type?
109(1)
Creating New Types
110(1)
Classes and Members
110(2)
Accessing Class Members
112(1)
Private Versus Public Access
112(2)
Implementing Member Functions
114(2)
Creating and Deleting Objects
116(7)
Hour 9 Moving into Advanced Classes
123(12)
Const Member Functions
123(1)
Interface Versus Implementation
124(1)
Organizing Class Declarations and Function Definitions
124(1)
Inline Implementation
124(3)
Classes with Other Classes as Member Data
127(8)
Part III Memory Management
Hour 10 Creating Pointers
135(20)
Understanding Pointers and Their Usage
135(10)
The Stack and the Heap
145(5)
Null Pointer Constant
150(5)
Hour 11 Developing Advanced Pointers
155(12)
Creating Objects on the Heap
155(1)
Deleting Objects
155(2)
Accessing Data Members Using Pointers
157(1)
Member Data on the Heap
158(2)
The this Pointer
160(1)
Stray or Dangling Pointers
161(1)
Const Pointers
162(1)
Const Pointers and const Member Functions
163(4)
Hour 12 Creating References
167(16)
What is a Reference?
167(1)
Creating a Reference
167(2)
Using the Address of Operator on References
169(2)
What Can Be Referenced?
171(1)
Null Pointers and Null References
172(1)
Passing Function Arguments by Reference
172(5)
Understanding Function Headers and Prototypes
177(1)
Returning Multiple Values
177(6)
Hour 13 Developing Advanced References and Pointers
183(16)
Passing by Reference for Efficiency
183(3)
Passing a const Pointer
186(3)
References as an Alternative to Pointers
189(2)
When to Use References and When to Use Pointers
191(1)
References to Objects Not in Scope
191(1)
Returning a Reference to an Object on the Heap
192(3)
Pointer, Pointer, Who Has the Pointer?
195(4)
Part IV Advanced C++
Hour 14 Calling Advanced Functions
199(14)
Overloaded Member Functions
199(2)
Using Default Values
201(2)
Initializing Objects
203(1)
The Copy Constructor
204(4)
Compile-Time Constant Expressions
208(5)
Hour 15 Using Operator Overloading
213(18)
Operator Overloading
213(11)
Conversion Operators
224(7)
Part V Inheritance and Polymorphism
Hour 16 Extending Classes with Inheritance
231(20)
What Is Inheritance?
231(3)
Private Versus Protected
234(2)
Constructors and Destructors
236(3)
Passing Arguments to Base Constructors
239(5)
Overriding Functions
244(7)
Hour 17 Using Polymorphism and Derived Classes
251(16)
Polymorphism Implemented with Virtual Member Functions
251(5)
How Virtual Member Functions Work
256(11)
Hour 18 Making Use of Advanced Polymorphism
267(20)
Problems with Single Inheritance
267(4)
Abstract Data Types
271(16)
Part VI Special Topics
Hour 19 Storing Information in Linked Lists
287(14)
Linked Lists and Other Structures
287(2)
Linked List Case Study
289(9)
Linked Lists as Objects
298(3)
Hour 20 Using Special Classes, Functions, and Pointers
301(30)
Static Member Data
301(2)
Static Member Functions
303(2)
Containment of Classes
305(7)
Friend Classes and Functions
312(19)
Hour 21 Using New Features of C++14
331(12)
The Newest Version of C++
331(1)
Using auto in Function Return Types
332(2)
Improved Numeric Literals
334(1)
The constexpr Keyword
335(3)
Lambda Expressions
338(5)
Hour 22 Employing Object-Oriented Analysis and Design
343(30)
The Development Cycle
343(1)
Simulating an Alarm System
344(6)
PostMaster: A Case Study
350(23)
Hour 23 Creating Templates
373(18)
What Are Templates?
373(1)
Instances of the Template
374(1)
Template Definition
374(7)
Using Template Items
381(10)
Hour 24 Dealing with Exceptions and Error Handling
391(20)
Bugs, Errors, Mistakes, and Code Rot
391(1)
Handling the Unexpected
392(1)
Exceptions
393(4)
Using try and catch Blocks
397(6)
Writing Professional-Quality Code
403(8)
Part VII Appendixes
Appendix A Binary and Hexadecimal
411(8)
Other Bases
412(1)
Around the Bases
412(4)
Hexadecimal
416(3)
Appendix B Glossary
419(8)
Appendix C This Book's Website
427(2)
Appendix D Using the MinGW C++ Compiler on Windows
429(10)
Downloading MinGW-w64
429(2)
Setting the Path Environment Variable
431(2)
Testing Your Installation
433(6)
Index 439
Rogers Cadenhead is a writer, computer programmer, and web developer who has written more than 25 books on Internet-related topics, including Sams Teach Yourself Java in 21 Days and Absolute Beginners Guide to Minecraft Mods Programming. He publishes the Drudge Retort and other websites that receive more than 22 million visits a year. This books official website is at http://cplusplus.cadenhead.org.

Jesse Liberty is the author of numerous books on software development, including best-selling titles on C++ and .NET. He is the president of Liberty Associates, Inc. (www.libertyassociates.com), where he provides custom programming, consulting, and training.