C++ Tutorial : C++ Full Course

Derek Banas · 353K views · 2019 · 2:22:52

Open on YouTube

C, C++, Rust, Go & systems languagesEducation & learningcourse

Why Stack Overflow recommends it

Stack Overflow users link it because beginners follow this tutorial and then post questions about the exact code and timestamps they are working through.

Recommended by 1 people across 1 different months, 2020 to 2021.

What it is

A roughly two-hour beginner C++ course by Derek Banas that condenses a large C++ book into one video, covering the language from basics through classes, inheritance, virtual functions and function objects. Viewers are encouraged to pause and type out the accompanying code.

What people said

Recommends Daniel Pantigoso · 2020-07 · Stack Overflow · on “What is this pointer and memory code printing? I don't know if it's printing garbage or how to print the value that I need”

@PaulMcKenzie I read 'A Tour of C++' second edition by Bjarne Stroustrup, which was recommended by Derek Banas, whose tutorial [this video] I'm following. He used malloc.

Cites edo101 · 2020-04 · Stack Overflow · on “'Circle::Area': 'override' specifier illegal on function definition Derektut”

My question is actual two fold. I am going through this tutorial [this video] and at 1:07:45, he talks about using the override keyword when defining a virtual fucnction of an abstract class. I kept my classes declaration and definintion in different files. When I try to use override in my definition, it gives me the "'override' specifier illegal" on function definition on Visual Studio 2019. Why is this? include "Circle.h" include "Shape.h" double Circle::Area() override { return 3.14159 * pow((width / 2), 2); } Also, what does this code snippet do? I am new to c++: Circle::Circle(double width) : Shape(width) { } Why is circle using a constructor from an abstract class? Is this even possible? Wh

Cites edo101 · 2020-04 · Stack Overflow · on “Issues assigning elements to vector of type function (functions as objects)”

I am following this tutorial [this video] and in it its covering using functions as objects. I have the following code: double multby2(double num) { return num * 2; } double multby3(double num) { return num * 3; } int main() { auto times2 = multby2; //store function as variable cout << "5 * 2 = " << times2(5) << endl; //so here times2 becomes multby2. I guess an object of it? vector<function<double(double)>> funcs(2); //vector that takes type dbl func with element size of 2 funcs[0] = multby2(10); funcs[1] = multby3; cout << "2 * 10 = " << funcs[0](10) << endl; } When I try to compile funcs[0] = multby2(10); , it gives me the error: Error C2679 binary '=': no operator found which takes a right-ha

Cites VanSpoof · 2021-05 · Stack Overflow · on “C++ "not a class or struct name" error when inheriting from another class”

I'm a beginner to C++ following this tutorial [this video] . I'm working on the section dealing with Classes and running into the following error. not a class or struct name C/C++(262) I am attempting to inherit the properties of a Shape parent class into a Circle class, but my editor claims that the Shape class is not defined. The error is raised on line 4 in Circle.h : class Circle: public Shape . I've included my code below. I've double checked my code against the code in the tutorial and ensured that all the files I've written are in the same directory, etc. Any pointers would be much appreciated. The code editor I'm using is VSCode 1.55.2. Code Shape.h #ifndef SHAPE_H #define SHAPE_H class S