Книга C++ Brain Teasers Anders Schau Knatten

C++ Brain Teasers

Автор: Anders Schau Knatten
Език: Английски език
Корици: С меки корици
Издател: Pragmatic Bookshelf
Наличност: Външен склад
Изпращаме след 10-18 дни
30.20 59.07 лв
C++ is famous for getting all the default behaviors wrong and for sometimes making demons fly out of...

Информация за книгата

Език
Английски език
Корици
Книга - С меки корици
Издадена
2024
страници
100
EAN
9798888650516
Enbook ID
45816047
Издател
Теглоt
274

Пълно описание

C++ is famous for getting all the default behaviors wrong and for sometimes making demons fly out of your nose. Through 25 puzzles, from the useful to the outright weird, we explore some of C++'s most interesting quirks. How does initialization actually work? Do temporaries even exist? Why is `+!!"" ` a valid expression in C++? As you work through each puzzle, you will peel off some of the layers of complexity of C++, getting a fundamental understanding of how the language works. This will help you write better code and recognize issues more easily while debugging.


Each puzzle in the book is a complete, seemingly simple C++ program, but can you figure out the output for each, or will the answers stump you? Most of the programs compile and have deterministic, though sometimes surprising, output. Some might, however, have undefined behavior, where anything can happen, including making demons fly out of your nose! Yet others might have unspecified behavior with output that is not completely deterministic; we just know nothing as bad as nasal demons will happen.


All puzzles are accompanied by detailed discussions, taking a look under the hood at what exactly is going on to help you understand more about C++'s unexpected behaviors, as well as fundamental concepts like initialization, overload resolution, and implicit conversions. For the non-deterministic cases, we'll explore some typical behaviors one can expect to see in practice, what causes them, and why they shouldn't be relied on.


After working through the book, you'll have tools and techniques to help you write better and safer code, and a better understanding of the fundamentals of the language, the background for some of C++'s apparent weirdness, and a better feel for identifying bugs and unsafe code in your own programs.


What You Need:


The book assumes basic knowledge of C++. If you want to run the programs yourself, you can use either a local C++ compiler or the online compilers at https://godbolt.org.

Може също да ви хареса

Discovering Modern C++

Peter Gottschling
49.17 96.17 лв
48.17 94.21 лв

Boca Juniors

Jim Whiting
11.84 23.15 лв

Freely I Served

Stanislaw Sosabowski
22.43 43.86 лв

Window

Marion Arbona
19.21 37.58 лв

Prada Catwalk

Susannah Frankel
75.01 146.72 лв
54.54 106.67 лв
11.99 23.45 лв
38.03 74.38 лв
38.08 74.48 лв
54.44 106.48 лв
24.13 47.20 лв

Chainsaw Man Box Set

Tatsuki Fujimoto
92.03 179.99 лв
26.94 52.69 лв

Leadership and Military Training

Lincoln Clarke Andrews
18.76 36.70 лв
10.08 19.72 лв
32.01 62.61 лв
22.43 43.86 лв

Клиенти, които купиха тази книга, купиха също

Java Web Services

David A. Chappell
39.94 78.11 лв
68.74 134.45 лв

Gray Hat Python

Justin Seitz
41.39 80.96 лв
39.94 78.11 лв
9.48 18.54 лв

ABBcédaire

Brigitte Bardot
25.59 50.04 лв

Nada bueno germina

CESAR PEREZ GELLIDA
23.83 46.61 лв
2.20 4.31 лв

PL 140 Drážďany 1:20 000

Freytag-Berndt und Artaria KG
12.49 24.43 лв
26.49 51.81 лв

ALCHIMIST

Paulo Coelho
11.24 21.97 лв
11.79 23.05 лв

Amigurumis - small and sweet!

Annemarie Sichermann
14.90 29.14 лв
11.74 22.96 лв

Náhlý klid

Michael Lorenc
4.36 8.53 лв

La casa de Bernarda Alba

Federico García Lorca
5.82 11.38 лв
5.82 11.38 лв

Opowiedz mi, Babciu

Monika Koprivova
31.26 61.13 лв
72.35 141.51 лв
26.04 50.93 лв

Malé jablko

Katarína Hybenová
13.95 27.27 лв
16.91 33.06 лв