C++ in One Hour a Day, Sams Teach Yourself

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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