Book description
In just one hour a day, you will have all the skills you need to begin programming in C++. With this complete tutorial, you will quickly master the basics, and then move on to more advanced features and concepts. Completely updated for the latest C++ standard, this book presents the language from a practical point of view, helping you learn how to use C++ to create faster, simpler, and more efficient C++ applications.
Master the fundamentals of C++ and object-oriented programming
Understand how C++ features help you write compact and efficient code using concepts such as lambda expressions, move constructors, and assignment operators
Learn best practices and avoid pitfalls
Learn the Standard Template Library, including containers and algorithms used in most real-world C++ applications
Test your knowledge and expertise with exercises at the end of every lesson
Learn on your own time, at your own pace:
No previous programming experience required
Write fast and powerful C++ programs, compile the source code, and create executable files
Learn object-oriented programming concepts such as encapsulation, abstraction, inheritance, and polymorphism
Use algorithms and containers from the Standard Template Library to write feature-rich yet stable C++ applications
Learn how automatic type deduction helps simplify C++ code
Develop sophisticated programming techniques using lambda expressions, smart pointers, and move constructors
Master the features of C++ by learning from programming experts
Learn C++ features that allow you to program compact and high-performance C++ applications
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- Introduction
- About the Author
- Acknowledgments
- We Want to Hear from You!
- Reader Services
-
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
-
Lesson 9. Classes and Objects
- The Concept of Classes and Objects
- The Keywords public and private
- Constructors
- Destructor
- The Copy Constructor
- Different Uses of Constructors and the Destructor
- The this Pointer
- Using sizeof() with a Class
- The Keyword struct and Its Differences from class
- Declaring a friend of a class
- Union: A Special Data Storage Mechanism
- Using Aggregate Initialization on Classes and structs
- Summary
- Q&A
- Workshop
- 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
-
Lesson 9. Classes and Objects
- Part III: Learning the Standard Template Library (STL)
-
Part IV: Lambda Expressions and STL Algorithms
- Lesson 21. Understanding Function Objects
-
Lesson 22. Lambda Expressions
- What Is a Lambda Expression?
- How to Define a Lambda Expression
- A Lambda Expression for a Unary Function
- A Lambda Expression for a Unary Predicate
- A Lambda Expression with State via Capture Lists ([...])
- A Lambda Expression for a Binary Function
- A 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 the STL
- Part V: Advanced C++ Concepts
-
Part VI: Appendixes
- Appendix A. Working with Numbers: Binary and Hexadecimal
- Appendix B. C++ Keywords
- Appendix C. Writing Great C++ Code
- Appendix D. ASCII Codes
-
Appendix E. 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
- Answers for Lesson 30
- Answers for Lesson 31
Product information
- Title: Sams Teach Yourself C++ in One Hour a Day, 9th Edition
- Author(s):
- Release date: February 2022
- Publisher(s): Sams
- ISBN: 9780137334674
You might also like
book
Programming: Principles and Practice Using C++, 3rd Edition
An Introduction to Programming by the Inventor of C++ Programming: Principles and Practice Using C++, Third …
book
Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards
Learn the C++ programming language in a structured, straightforward, and friendly manner. This book teaches the …
book
C++ Crash Course
Upgrade your Code with C++ C++ is one of the most widely used languages for real-world …
book
Programming: Principles and Practice Using C++, 2nd Edition
An Introduction to Programming by the Inventor of C++ Preparation for Programming in the Real World …