- A Fast-Paced Introduction
av Joshua Lospinoso
715,-
A fast-paced, thorough introduction to modern C++ revised to cover C++20.C++ is one of the world''s most popular programming languages.As with the highly-regarded first edition, Lospinoso covers everything from types and functions, to the object life cycle and expressions; the C++ Standard Library and Boost Libraries; utility classes, data structures, and algorithms, and how to manipulate file systems and build high-performance programs that communicate over networks.This thoroughly revised second edition cuts through the weeds to get straight to the core of C++20, the most modern revision of the ISO standard. A new "Coroutines" chapter introduces a new language feature that lets users express functions that can suspend execution. The "Iterator" chapter has been replaced with a new chapter called "Ranges," the new library that largely replaces iterators in daily programming and allows users to interact with sequences of objects. Lospinoso has also added a "Modules" chapter which shows how to create and consume library code. Printf has also been replaced with std::format and there are numerous updates throughout.You''ll learn: • Fundamental types, reference types, and user-defined types • The object lifecycle including storage duration, memory management, exceptions, call stacks, and the RAII paradigm • Compile-time polymorphism with templates and run-time polymorphism with virtual classes • Advanced expressions, statements, functions, and coroutines • Smart pointers, data structures, dates and times, numerics, and probability/statistics facilities • Containers, iterators, strings, and algorithms • Streams and files, concurrency, networking, application development, and modules