C++ in 24 Hours, Sams Teach Yourself (häftad)
Format
Häftad (Paperback)
Språk
Engelska
Antal sidor
480
Utgivningsdatum
2016-10-06
Upplaga
6
Förlag
Sams Publishing
Medarbetare
Liberty, Jesse
Illustratör/Fotograf
illustrations
Illustrationer
illustrations
Dimensioner
229 x 175 x 25 mm
Vikt
749 g
Antal komponenter
1
ISBN
9780672337468

C++ in 24 Hours, Sams Teach Yourself

(1 röst)
Häftad,  Engelska, 2016-10-06
276
  • Skickas från oss inom 5-8 vardagar.
  • Fri frakt över 249 kr för privatkunder i Sverige.
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.

Using a straightforward approach, this fast and friendly tutorial teaches you everything you need to know, from installing and using a compiler, to debugging the programs youve created, to whats new in C++14.

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 youre ready to go on

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 and classes
  • Add rich functionality with templates and lambda expressions
  • Debug your programs for flawless code
  • Learn exception and error-handling techniques
  • Put to use the new features in C++14, the latest version of the language
  • Create and use templates
  • Control program flow with loops
  • Store information in arrays and strings
  • Declare and use pointers
  • Use operator overloading
  • Extend classes with inheritance
  • Use polymorphism and derived classes
  • Employ object-oriented analysis and design
Visa hela texten

Passar bra ihop

  1. C++ in 24 Hours, Sams Teach Yourself
  2. +
  3. Python Crash Course, 3rd Edition

De som köpt den här boken har ofta också köpt Python Crash Course, 3rd Edition av Eric Matthes (häftad).

Köp båda 2 för 873 kr

Kundrecensioner

Har du läst boken? Sätt ditt betyg »

Fler böcker av Rogers Cadenhead

  • Sams Teach Yourself Java in 21 Days (Covering Java 7 and Android)

    Rogers Cadenhead

    If you get only one Java book, it should be Sams Teach Yourself Java in 21 Days . -- PC Magazine Sams Teach Yourself Java is one of the best introductions to hands-on Java programming. If you buy one book on Java, this is the one to buy! -- Indepe...

  • Sams Teach Yourself Java in 21 Days (Covers Java 11/12)

    Rogers Cadenhead

    In arenas ranging from enterprise development to Android app programming, Java remains one of the world's most popular programming languages. Sams Teach Yourself Java in 21 Days helps the serious learner gain true mastery over the new Java 9. &nbs...

Övrig information

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 Beginner s Guide to Minecraft Mods Programming." He publishes the Drudge Retort and other websites that receive more than 22 million visits a year. This book s 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. "

Innehållsförteckning

 Introduction   1
PART I:  BEGINNING C++
Hour 1:  Writing Your First Program   5

Using C++   5
Compiling and Linking the Source Code   6
Creating Your First Program   7
Hour 2:  Organizing the Parts of a Program   13
Reasons to Use C++   13
The Parts of a Program   17
Comments   19
Functions   20
Hour 3:  Creating Variables and Constants   27
What Is a Variable?   27
Defining a Variable   32
Assigning Values to Variables   33
Using Type Definitions   34
Constants   36
Auto-Typed Variables   38
Hour 4:  Using Expressions, Statements, and Operators   43
Statements   43
Expressions   44
Operators   45
If-Else Conditional Statements   52
Logical Operators   56
Tricky Expression Values   58
Hour 5:  Calling Functions   61
What Is a Function?   61
Declaring and Defining Functions   61
Using Variables with Functions   64
Function Parameters   67
Returning Values from Functions   68
Default Function Parameters   70
Overloading Functions   72
Auto-Typed Return Values   73
Hour 6:  Controlling the Flow of a Program   79
Looping   79
while Loops   79
do-while Loops   83
for Loops   84
switch Statements   89
Hour 7:  Storing Information in Arrays and Strings   95
What Is an Array?   95
Writing Past the End of Arrays   97
Initializing Arrays   98
Multidimensional Arrays   99
Character Arrays   102
Copying Strings   104
Reading Arrays with Foreach Loops   105

PART II:  CLASSES
Hour 8:  Creating Basic Classes   109

What Is a Type?   109
Creating New Types   110
Classes and Members   110
Accessing Class Members   112
Private Versus Public Access   112
Implementing Member Functions   114
Creating and Deleting Objects   116
Hour 9:  Moving into Advanced Classes   123
const Member Functions   123
Interface Versus Implementation   124
Organizing Class Declarations and Function Definitions   124
Inline Implementation   124
Classes with Other Classes as Member Data   127

PART III:  MEMORY MANAGEMENT
Hour 10:  Creating Pointers   135

Understanding Pointers and Their Usage   135
The Stack and the Heap   145
Null Pointer Constant   150
Hour 11:  Developing Advanced Pointers   155
Creating Objects on the Heap   155
Deleting Objects   155
Accessing Data Members Using Pointers   157
Member ...