Fireship · @fireship
C++ in 100 Seconds
Uploaded February 7, 2022 · Length 2:46
Summary
C++ basics explained in 100 seconds, including its history, features, and usage in software infrastructure.
- c++ basics
- c++ programming language
- object-oriented programming
- c++ tutorial
- c++ for beginners
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
C++ a statically typed compiled
- 0:03
programming language famous for its
- 0:04
widespread use in software
- 0:05
infrastructure and Infamous for its
- 0:07
steep learning curve it was created in
- 0:09
1979 by bej Strauss at AT&T Bell Labs he
- 0:13
was inspired by the object-oriented
- 0:15
nature of simula but needed a language
- 0:17
with a high performance of c and thus C
- 0:19
with classes was born it's designed as a
- 0:21
suet of C which means that virtually any
- 0:24
c program is also a valid C++ program
- 0:27
but it also adds zero overhead
- 0:28
abstractions such as object-oriented
- 0:30
patterns like polymorphism encapsulation
- 0:33
and inheritance today it's used in a
- 0:35
wide variety of systems with constrained
- 0:37
memory demands like the Unreal Engine
- 0:38
for AAA video games programs like Adobe
- 0:41
After Effects that were used to edit
- 0:42
this video databases like MySQL and
- 0:45
mongodb embedded systems like the
- 0:47
display on your smart toaster and is
- 0:48
used to implement much of our low-level
- 0:50
infrastructure like language compilers
- 0:52
and virtual machines it's so popular
- 0:54
because it provides low-level memory and
- 0:55
Hardware control like C but with highle
- 0:58
abstractions like classes and Mark
- 1:00
pointers C++ makes it harder to shoot
- 1:02
yourself in the foot but when you do
- 1:03
it'll blow your whole leg off to get
- 1:06
started install a C+ plus compiler like
- 1:09
GCC or clang then create a file ending
- 1:11
in CPP include IO stream from the
- 1:13
standard library to handle input and
- 1:15
output your code will start executing
- 1:17
from the main function to print hello
- 1:19
world we simply use standard character
- 1:20
output followed by the bit y shift left
- 1:22
operator and a string literal we can get
- 1:24
rid of this STD though by adding a
- 1:26
namespace to the top of the file now if
- 1:28
we want to create a string variable we
- 1:30
can do so by typing it as an array of
- 1:32
characters however if we include string
- 1:34
from the standard Library we can use the
- 1:36
string type instead the real game
- 1:38
changer though is the fact that C++
- 1:40
supports object-oriented programming
- 1:41
with classes a class is just a blueprint
- 1:44
for an object inside a class you can
- 1:46
Define attributes and methods that will
- 1:47
be private by default or make them
- 1:49
public by adding them under the public
- 1:51
specifier it's also possible to Define
- 1:53
methods outside the class definition
- 1:55
using a double colon methods can also be
- 1:57
defined multiple times with different
- 1:58
parameters which is known as overloading


