Book description
Learn C++ in Just One Hour a Day
Completely updated for the C++11 standard, Sams Teach Yourself
C++ in One Hour a Day presents the language from a practical
point of view, helping you learn how to use C++11 to create faster,
simpler, and more efficient C++ applications.
Master the fundamentals of C++ and object-oriented programming
Understand how C++11 features help you write compact and efficient code using concepts such as lambda expressions, move constructors, and assignment operators
Learn the Standard Template Library, including containers and algorithms used in most real-world C++ applications
Test your knowledge and expertise using exercises at the end of every lesson
Learn on your own time, at your own pace:
No previous programming experience required
Learn C++11, object-oriented programming, and analysis
Write fast and powerful C++ programs, compile the source code with a gcc compiler, and create executable files
Use the Standard Template Library’s (STL) algorithms and containers to write feature-rich yet stable C++ applications
Develop sophisticated programming techniques using lambda expressions, smart pointers, and move constructors
Learn to expand your program’s power with inheritance and polymorphism
Master the features of C++ by learning from programming experts
Learn C++11 features that allow you to program compact and high-performance C++ applications
TABLE OF CONTENTS
PART I: THE BASICS
LESSON 1: Getting Started with
C++11
LESSON 2: The Anatomy of a C++ Program
LESSON 3: Using Variables, Declaring Constants
LESSON 4: Managing Arrays and Strings
LESSON 5: Working with Expressions, Statements, and Operators
LESSON 6: Controlling Program Flow
LESSON 7: Organizing Code with Functions
LESSON 8: Pointers and References Explained
PART II: FUNDAMENTALS OF OBJECT-ORIENTED C++ PROGRAMMING
LESSON 9: Classes and Objects
LESSON 10: Implementing Inheritance
LESSON 11: Polymorphism
LESSON 12: Operator Types and Operator Overloading
LESSON 13: Casting Operators
LESSON 14: An Introduction to Macros and Templates
PART III: LEARNING THE STANDARD TEMPLATE LIBRARY (STL)
LESSON 15: An Introduction to the Standard Template Library
LESSON 16: The STL String Class
LESSON 17: STL Dynamic Array Classes
LESSON 18: STL list and forward_list
LESSON 19: STL Set Classes
LESSON 20: STL Map Classes
PART IV: MORE STL
LESSON 21: Understanding Function Objects
LESSON 22: C++11 Lambda Expressions
LESSON 23: STL Algorithms
LESSON 24: Adaptive Containers: Stack and Queue
LESSON 25: Working with Bit Flags Using STL
PART V: ADVANCED C++ CONCEPTS
LESSON 26: Understanding Smart Pointers
LESSON 27: Using Streams for Input and Output
LESSON 28: Exception Handling
LESSON 29: Going Forward
APPENDIXES
A: Working with Numbers: Binary and Hexadecimal
B: C++ Keywords
C: Operator Precedence
D: Answers
E: ASCII Codes
Table of contents
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- About the Author
- Dedication
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
-
Part I. The Basics
- Lesson 1. Getting Started
- Lesson 2. The Anatomy of a C++ Program
- Lesson 3. Using Variables, Declaring Constants
- Lesson 4. Managing Arrays and Strings
- Lesson 5. Working with Expressions, Statements, and Operators
- Lesson 6. Controlling Program Flow
- Lesson 7. Organizing Code with Functions
- Lesson 8. Pointers and References Explained
- Part II. Fundamentals of Object-Oriented C++ Programming
- Part III. Learning the Standard Template Library (STL)
-
Part IV. More STL
- Lesson 21. Understanding Function Objects
-
Lesson 22. C++11 Lambda Expressions
- What Is a Lambda Expression?
- How to Define a Lambda Expression
- Lambda Expression for a Unary Function
- Lambda Expression for a Unary Predicate
- Lambda Expression with State via Capture Lists [...]
- The Generic Syntax of Lambda Expressions
- Lambda Expression for a Binary Function
- Lambda Expression for a Binary Predicate
- Summary
- Q&A
- Workshop
- Lesson 23. STL Algorithms
- Lesson 24. Adaptive Containers: Stack and Queue
- Lesson 25. Working with Bit Flags Using STL
- Part V. Advanced C++ Concepts
-
Appendixes
- Appendix A. Working with Numbers: Binary and Hexadecimal
- Appendix B. C++ Keywords
- Appendix C. Operator Precedence
-
Appendix D. Answers
- Answers for Lesson 1
- Answers for Lesson 2
- Answers for Lesson 3
- Answers for Lesson 4
- Answers for Lesson 5
- Answers for Lesson 6
- Answers for Lesson 7
- Answers for Lesson 8
- Answers for Lesson 9
- Answers for Lesson 10
- Answers for Lesson 11
- Answers for Lesson 12
- Answers for Lesson 13
- Answers for Lesson 14
- Answers for Lesson 15
- Answers for Lesson 16
- Answers for Lesson 17
- Answers for Lesson 18
- Answers for Lesson 19
- Answers for Lesson 20
- Answers for Lesson 21
- Answers for Lesson 22
- Answers for Lesson 23
- Answers for Lesson 24
- Answers for Lesson 25
- Answers for Lesson 26
- Answers for Lesson 27
- Answers for Lesson 28
- Answers for Lesson 29
- Appendix E. ASCII Codes
- Index
Product information
- Title: Sams Teach Yourself C++ in One Hour a Day, Seventh Edition
- Author(s):
- Release date: May 2012
- Publisher(s): Sams
- ISBN: 9780132786515
You might also like
book
Sams Teach Yourself C++ in One Hour a Day, Eighth Edition
In just one hour a day, you’ll have all the skills you need to begin programming …
book
Sams Teach Yourself C++ in 24 Hours, Sixth Edition
Sams Teach Yourself C++ in 24 Hours is a hands-on guide to the C++ programming language. …
book
Sams Teach Yourself C++ in 21 Days , Fifth Edition
A new edition of this title is available, ISBN-10: 0672329417 ISBN-13: 9780672329418 Join the leagues of …
book
Sams Teach Yourself C++ in One Hour a Day, 9th Edition
The Ninth Edition of Sams Teach Yourself C++ in One Hour a Day Starting with one …