The Ninth Edition of Sams Teach Yourself C++ in One Hour a Day
Starting with one hour a day, you can gain all the skills you need to begin programming in C++. This complete tutorial will help you quickly master the basics of object-oriented programming and teach you advanced C++ language features and concepts. Fully updated for the C++20 standard, this practical book is designed to help you write C++ code that's faster, simpler, and more reliable.
* Master the fundamentals of C++ and object-oriented programming
* Use the Standard Template Library (STL) to quickly develop more powerful and reliable real-world applications
* Learn modern C++20 features such as concepts, ranges, views, adaptors, and modules
* Apply proven Do's and Don'ts to leverage best practices and avoid pitfalls from day one
* Test your knowledge and expertise with focused exercises after every lesson
* Learn using nearly 300 compiling code samples that are available for free download and have been explained in detail in the book
Learn on your own time, at your own pace
* No programming experience required: start writing well-organized, efficient C++ programs quickly!
* Master object-oriented concepts such as classes, inheritance, polymorphism, encapsulation, and abstraction
* Create reliable, feature-rich programs with STL classes, containers, and algorithms
* Simplify your code using automatic type deduction and other features
* Program function objects with modern C++ Lambda expressions
* Accelerate learning using nearly 300 code samples explained within
* Make the most of new C++20 concepts, ranges, views, adaptors, and modules
* Preview improvements expected in C++23
Author(s): Siddhartha Rao
Edition: 9
Publisher: Sams Publishing
Year: 2022
Language: English
Pages: 848
Tags: C++; C++20; C++23; OOP; Object-Oriented Programming; STL; Standard Template Library; Concepts; Ranges; Views; Adaptors; Modules; Classes; Inheritance; Polymorphism; Encapsulation; Abstraction; Lambda Expressions
Introduction
Part I: The Basics
1 Getting Started
2 The Anatomy of a C++ Program
3 Using Variables, Declaring Constants
4 Managing Arrays and Strings
5 Working with Expressions, Statements, and Operators
6 Controlling Program Flow
7 Organizing Code with Functions
8 Pointers and References Explained
Part II: Fundamentals of Object-Oriented C++ Programming
9 Classes and Objects
10 Implementing Inheritance
11 Polymorphism
12 Operator Types and Operator Overloading
13 Casting Operators
14 An Introduction to Macros and Templates
Part III: Learning the Standard Template Library (STL)
15 An Introduction to the Standard Template Library
16 The STL String Class
17 STL Dynamic Array Classes 465
18 STL list and forward_list 487
19 STL set and multiset 507
20 STL map and multimap 525
Part IV: Lambda Expressions and STL Algorithms
21 Understanding Function Objects 549
22 Lambda Expressions 565
23 STL Algorithms 579
24 Adaptive Containers: Stack and Queue 615
25 Working with Bit Flags Using the STL 633
Part V: Advanced C++ Concepts
26 Understanding Smart Pointers 645
27 Using Streams for Input and Output 661
28 Exception Handling 683
29 C++20 Concepts, Ranges, Views, and Adaptors699
30 C++20 Threads 717
31 C++20 Modules and C++23725
Part VI: Appendixes
A Working with Numbers: Binary and Hexadecimal
B C++ Keywords
C Writing Great C++ Code
D ASCII Codes
E Answers
Index