C++ Tutorial : C++ Full Course

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

ความคิดเห็น • 615

  • @derekbanas
    @derekbanas  4 ปีที่แล้ว +172

    Table of Contents
    Install C++ : th-cam.com/video/DamuE8TM3xo/w-d-xo.html
    0:00:32 Basics
    0:01:21 Comments
    0:01:40 Libraries
    0:02:50 Namespace std
    0:03:03 Cout / Endl
    0:04:12 Main
    0:05:18 Variables
    0:05:30 Global Variables
    0:05:51 Constants
    0:06:12 Data Types
    0:08:32 Float Precision
    0:09:00 Printf
    0:10:01 Auto
    0:12:16 Cin
    0:12:50 Casting
    0:13:00 Math Operators
    0:14:12 Conditional / Logical Operators
    0:14:27 If / Else If / Else
    0:16:30 Ternary Operator
    0:17:40 Arrays
    0:20:51 Vectors
    0:21:55 While Loop
    0:22:35 Break / Continue
    0:24:19 String Stream
    0:24:56 Getline
    0:25:25 For Loop
    0:27:10 Random
    0:27:50 Do While
    0:29:04 Strings
    0:32:35 Character Functions
    0:34:13 Math Functions
    0:35:06 Functions
    0:41:00 Pointers
    0:47:25 Exception Handling
    0:49:17 Classes / Objects
    0:50:37 Header File
    0:50:59 Private / Protected / Public
    0:52:44 Static
    0:53:22 Constructor
    0:53:39 Overloading Functions
    0:54:05 Deconstructor
    0:54:22 Setters / Getters
    0:55:30 Static Methods
    0:55:51 Virtual
    0:56:40 Implementation File
    0:57:17 This
    0:57:48 Pointer Operator
    1:00:23 Polymorphism
    1:01:32 Inheritance
    1:03:12 Call Super Functions
    1:04:04 Creating Objects
    1:06:25 Abstract Classes
    1:07:30 Override
    1:08:36 Structs
    1:11:56 Operator Overloading
    1:18:24 Lambda Expressions
    1:22:37 For_Each
    1:23:35 File IO
    1:28:00 Functions as Objects
    1:30:57 Macros
    1:31:56 Template Functions
    1:34:50 Template Classes
    1:37:18 Double Ended Queue
    1:39:04 Iterators
    1:42:27 Malloc / Memory Management
    1:45:24 Smart Pointers
    1:46:53 Threads
    1:48:13 Time Functions
    1:53:00 Deques
    1:57:04 Lists
    2:02:45 Forward List
    2:05:54 Sets
    2:09:30 Multisets
    2:10:32 Map
    2:13:21 Multimaps
    2:13:40 Stack
    2:15:11 Queue
    2:16:24 Priority Queues
    2:17:26 Enums
    2:19:04 Regular Expressions
    More Regular Expression Tutorials : th-cam.com/video/9K4N6MO_R1Y/w-d-xo.html

    • @bankoftrustnwobot3218
      @bankoftrustnwobot3218 4 ปีที่แล้ว +1

      Derek Banas Many thanks for your awesome tutorials. Netbeans is a great choice 👍. My favorite series is the C programming :)

    • @יהוה-ע6מ
      @יהוה-ע6מ 4 ปีที่แล้ว +3

      Its awsome
      What about openGL in one video ?

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +5

      Thank you very much :)

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +4

      I'll see what I can do

    • @jayveetamonang3392
      @jayveetamonang3392 4 ปีที่แล้ว

      @@derekbanas sir can you help me how to make a code in vb.net

  • @Neon-lens
    @Neon-lens 4 ปีที่แล้ว +81

    This two hours is equivalent to 2 years of class lecture. Heavy stuff in here.... I have to watch many times. I just started learning C++ for work. It’s such a powerful language

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +6

      Thank you :) I did my best to cover a lot

    • @zyghom
      @zyghom 2 ปีที่แล้ว +1

      actually like 100x too fast as well - not only the speed of the speech - 30s for pointers? man ;-)

    • @blasttrash
      @blasttrash 7 หลายเดือนก่อน +1

      since its 4 years that you learnt c++, what are you doing now? are you using c++ at your job today? or did you move to a different language or even a different job field?

    • @sayori3939
      @sayori3939 หลายเดือนก่อน

      he died at the undefined behavior where if you declared a double as global it would start with an incredibly huge number even through it was supposed to start with 0

  • @someoneontheinternetuvenev6268
    @someoneontheinternetuvenev6268 3 ปีที่แล้ว +40

    This was the perfect tutorial for someone who already has experience programming in different languages (especially stuff like c#/java), although I wouldnt recommend this video to a COMPLETE beginner, either way, loved the video, everything was straight on point, thank you so much!

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว +12

      Thank you :) Yes it was made for people with experience in other languages

    • @nikolaaskaas
      @nikolaaskaas 2 ปีที่แล้ว +1

      Derek is always my first goto when I need to pick up a new language, especially for this reason. No bullshit, just quick and to the point. I already know the foundations of programming, just tell me what I need to know.

  • @omaraissani6255
    @omaraissani6255 4 ปีที่แล้ว +16

    This tutorial is the best transition from c to c++. You're the best Derek ! And congratulations for the 1M subscriber :D

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you very much :) I'm happy you found it useful

  • @charlesbaldo
    @charlesbaldo 4 ปีที่แล้ว +2

    I have done Microsoft stuff for 35 years, BASIC, C, C++, Vb.net and then lots of C#, about three months ago I got hired to do PHP Zend Expressive, never did any of it before. Learned the PHP in a 2 hour video but have been working on implementing it. Just starting to write programs that are making management happy.
    I have done C++ professionally, this is an excellent start, another gem by Derek Banas

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you for the nice compliment :)

  • @EXTREMEKIWI115
    @EXTREMEKIWI115 4 ปีที่แล้ว +3

    Derek, you probaby hear this a lot, but you're a big reason why I was able to get started with C++ very quickly. I started learning programming with your C# videos, too.
    I can't thank you enough for making such comprehensive programming resources, complete with hd videos, clear notes with good comments, all easily available for reference.
    I also highly appreciate your approach to learning. Instead of memorizing everything, we can come back to relearn whatever we need, when we need it, without getting overwhelmed and exhausted. It all makes for an accelerated programming experience.
    Thank you for the update to the C++ tutorial as well. Have a great day, Derek!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +3

      Thank you for taking the time to write such a nice message :) People assume that I don't read the comments, but I read every one and the nice ones always make me happy.

  • @jordanchoi1522
    @jordanchoi1522 4 ปีที่แล้ว +5

    correction at 45:10 the addresses wont be the same since theyre two different objects (intArray and age2) which have different memory locations and therefore pointers to it will hold said different memory locations.

  • @1Stormrider1
    @1Stormrider1 3 ปีที่แล้ว +4

    1:13:15 Is there a reason why you didn't explain the need to use a reference here? Please don't skip small things like these (there's a handful of them in the video) because otherwise the tutorial can be understood by anyone. I know viewers can look stuff up, but that's why we watch your videos, because they're mostly comprehensive. Thanks for the great videos.

  • @mryup6100
    @mryup6100 2 ปีที่แล้ว +8

    I actually watched the whole thing! I really enjoyed it! It was perfect for someone who needs to refresh their C++ knowledge.

  • @KH-cs7sj
    @KH-cs7sj ปีที่แล้ว +1

    This video is exactly what I needed to pick up my long lost C++ skills before an interview. I read through the C++ primer many years ago. But except for a few school projects, I never used C++ in real world programs. After watching this video, I'll try to use C++ to solve Leetcode problems to consolidate the learning.

  • @AbdulSamadDev
    @AbdulSamadDev 4 ปีที่แล้ว +33

    Congratulations Derek 💐
    You're truly a gem.
    Thank you so much for all of these tutorials.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +13

      Thank you :) You're very kind to say that

  • @justoneofwebcitizens
    @justoneofwebcitizens 4 ปีที่แล้ว +146

    Someone giggle when see cover of the book: learn C++ in 24 hours. I thinking this tutorial will be a nominante to award Guiness world records as fastest way to learn C++.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +42

      Thank you :) I'll always do my best to not waste peoples time

    • @nathanunderbsd5972
      @nathanunderbsd5972 4 ปีที่แล้ว +10

      I Agree, it is a straightforward learning process is always with Derek. Simply smart move. - Don't work hard, work smart.

    • @simplejack2136
      @simplejack2136 2 ปีที่แล้ว +2

      You do understand that you are not going to actually learn c++ in 2 hours by simply watching the video, right?

  • @2271masoud
    @2271masoud 4 ปีที่แล้ว +14

    wow, 1 million subscribers. I've been waiting for this moment for a LONG time. well done Derek 🎉 you deserve it

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +2

      Thank you for taking the time to watch my videos :) It makes me happy to see a familiar name

    • @AnonymousDeveloper1
      @AnonymousDeveloper1 4 ปีที่แล้ว

      So many subs, so little views.

  • @rockart8660
    @rockart8660 4 ปีที่แล้ว +1

    Thanks a LOT for this tutorial. I have done quite a bit of C programming and also some object-oriented programming, but that mainly in Java, even though I have heard many of these things before, I feel lost when I have to write a C++ program from scratch. I never have problems expanding them, because building on code is just easier. This tutorial gave me a veeery quick overview and now I can look into the things that I feel I need to learn more about instead of having to go through a whole C++ course where I already know 90% of the material.
    One piece of advice: Make your titles more descriptive. It took me a while to find it "C++ Tutorial 2020" does not do this video justice.

  • @gokusaiyan1128
    @gokusaiyan1128 4 ปีที่แล้ว +30

    Next make a series on data structures using c++.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +20

      I'll see what I can do

    • @zxxczczczcz
      @zxxczczczcz 3 ปีที่แล้ว +5

      @@derekbanas make

    • @discarded1669
      @discarded1669 3 ปีที่แล้ว +1

      @@derekbanas been an year bro.. Please do it, we need it badly

    • @seifabomandor4579
      @seifabomandor4579 3 ปีที่แล้ว

      @@discarded1669 go easy on him he isn't forced to you can see if other youtuber did it

  • @earlgreen8943
    @earlgreen8943 3 ปีที่แล้ว +1

    This is such a comprehensive C++ tutorial covering all the modern features offered by the language. It is fantastic. I do actually have a question for Derek though. Are you using the C++ 14 standard when writing the code for this video or is it another standard, e.g. C++ 11, C++ 17, etc. I noticed in your variable/object declarations and initialization, it appears to be C++ 14 but I wanted to be sure.

  • @chrisallick
    @chrisallick 4 ปีที่แล้ว +1

    Hi, I watched your video straight through and coded along. No issues, but I have a couple questions, and one tip.
    Questions:
    00:57:20 why do setters use "this->", but getters do not?
    01:17:19 explain suffix incriminator? i wanted to variable++ didn't get why ++variable was used at first. quick google allowed me to overload and get x++ and ++x
    01:21:21 explain why sort takes a parameter of a lambda function? That seems previously unexplained.
    01:35:44 why not this->numOfPeople++ ? And assuming you went with the static class member vs setter and getter to show different way? Or was there a reason why setter/getter was less appropriate?
    01:42:27 wait… why did you do your for loop with the memory address of I? I think basically what your saying is for int i which is an array index of num3? Ah, that kind of confused me.
    01:44:06 ok, so malloc is called and you say take the number of items you want, multiply that by the memory size of an int, that is how much memory to allocate. Got it. So why do you cast to int? Because malloc returns a void *? What… is that? Why would you need to cast to int vs void? I guess I don’t understand, you’ve created the memory you need.
    01:45:10 what would happen if you don’t delete the pointer pNums?
    02:07:32 similar confusion, why are we sending *it to cout? It is an integer iterator for a set of integers. So… it is the memory location of first item, but the *it is the actual value where we’ve iterated to?
    02:07:56 it++ is the same as advance(it, 1) correct? So would it-=2 be the same as advance(it, -2)?
    02:09:47 ok, never heard of a multi set, so basically a set, but you must maintain order and in that case you can have duplicate keys? What would be a simple use case for that?
    02:11:13 is a pair a tuple? A quick google says no, but not really obvious why.
    02:11:42 match -> second is required because map returns… an object with an attribute second? Like its a helper attribute which points to the second position of the match? Not totally clear.
    Tip:
    When you download Apache Netbeans 12 it won’t come with c/c++ samples like your video has at the start. No problem, go to Tools -> Plugins -> Settings tab. Make sure all are active. Go back to Available Plugins, fetch latest (update). C/C++ will be available.
    This was fantastic.
    Thanks,
    Chris.

    • @chrisallick
      @chrisallick 4 ปีที่แล้ว

      @Peterolen Incredibly appreciative of you taking the time to answer me! Thanks!

  • @vekktrszcrowz2568
    @vekktrszcrowz2568 4 ปีที่แล้ว +2

    Man, I can't thank you enough for this tutorial. Not only it helps to learn a ton of handy features, it saves me a great deal of time. You have great teaching skills, I love it how you deal with everything head on, no useless introductions, just raw practice as it should be. I know a few things from the books, but seeing all of this actually done right away was a huge help. Cheers from Russia :)

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you for the nice compliment :) I do my best to not waste peoples time while covering as much as possible.

  • @yingzhining
    @yingzhining 2 ปีที่แล้ว +3

    Great tutorial!
    Just noticed a problem: At 36:05 in the video, there were some default value assigned to the input arguments for function AddNumbers at the function definition, well you need assign the default value at the function declaration before main in order to be able to use them in the main function.

  • @peracc8862
    @peracc8862 4 ปีที่แล้ว +78

    "How to Learn Everything in One Video"

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +32

      Practice every day while at your maximum focus. That's basically all I do. Having the best practice tools available also helps. Check out my ukulele video I recently made to see how I taught my 6 year old daughter ukulele in 2 months

    • @WeiqiSub
      @WeiqiSub 4 ปีที่แล้ว +1

      哈哈哈 actually funny

    • @geodaet83
      @geodaet83 4 ปีที่แล้ว +10

      @@derekbanas well, thats because you're a genius and the apple does not fall far from the tree ;-)

    • @finchat9407
      @finchat9407 4 ปีที่แล้ว +12

      @@geodaet83 don't make excuses. You can learn too if you put your mind to it

  • @blessdarah1256
    @blessdarah1256 4 ปีที่แล้ว +2

    When I got the notification of this tutorial, I just shouted hurray....! Thanks a lot Derek! You're tutorials are very valuable.
    Please can you make a project using the latest C++ standards? Will love to see how all these winds up! Thanks in advance.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you :) I'll see what I can do about more C++ tutorials

  • @sjakke85
    @sjakke85 4 ปีที่แล้ว +3

    You're the only youtube channel I'm subscribed to. Absolutely love your tutorials and the way you present them.
    Will you ever do a cobol tutorial?

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +2

      Thank you for the compliment :) I'll see what I can do about Cobol. I know it

  • @priyankachoudhary3694
    @priyankachoudhary3694 3 ปีที่แล้ว +1

    Loved this video man! It really prepped me to start my dsa practice, couldn’t find anything better than this on the internet !

  • @Soccercrazyigboman
    @Soccercrazyigboman 4 ปีที่แล้ว +5

    You really could spend some time to explain some of the stuff you do like the shape class. THere are a lot of things you do like in 1:03:15 where the circle constructor inherits something from Shape. Like what is going on there?

  • @bharathvajkm5650
    @bharathvajkm5650 4 ปีที่แล้ว +4

    Hello Derek, Congrats on 1M subscribers! You deserve it, your videos are super useful for us. Could you make a video on Flutter next? Thanks

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :) I'm working on Flutter

  • @gokusaiyan1128
    @gokusaiyan1128 4 ปีที่แล้ว +26

    Next make an Algorithm course/playlist covering Cormen :). That book gives me nightmares

  • @kayahantasyaran6310
    @kayahantasyaran6310 2 ปีที่แล้ว

    Tutorial is decent overall. Contains valuable info in some sections. However, includes some bad practice in some sections also.
    Good sides:
    - Mentioning chrono, concurrency and smart pointers.
    - Mentioning stack, queue, priority queue. There is not much tutorial properly explaining them.
    - Covering containers with examples along with for_each, upper_bound etc in some parts.
    Nice to have:
    0:17:40 Arrays --> Would be nice if covered with using std::array.
    1:30:57 Macros --> There are better alternatives. Even may not been included.
    1:42:27 Malloc / Memory Management --> I think this part should have been recorded with new/delete. Malloc is not C++ way of doing this and has differences with new.
    2:17:26 Enums --> Enum classes are better.
    Use of this->height etc. may bring confusion unlike it is done in Java/C#.
    Lets dig on wrong sides / bad practices:
    - Template Functions/Classes are kinda pedantic. The proper way of calling them is Function/Class Templates.
    - Overloading Functions --> Function Overloading.
    - Deconstructor --> Destructor.
    - Using NULL in example code instead of using nullptr.
    - Not using member initializer list in constructors.
    - Throwing const correctness away on OOP side.
    0:12:50 Casting --> This is not casting. Just converting a string to integer. Casting is something else.

  • @Mischiefcity2013
    @Mischiefcity2013 4 ปีที่แล้ว

    Last week was Lisp and this week I took on C++. I've been programming in a bubble for the last few years, mostly Python and JavaScript, but I've been trying to do more by re-learning some of the languages that I picked up at one point or another and never used. Right now, I'm writing a custom IDE for myself in Qt and I needed to brush up on my C++. I started in C++ years back, but I quit shortly after I traded in most of my ICs for Arduino. Thanks Derek for these tutorials, they've been such a great help.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      I'm very happy to be of help :)

  • @hassanmirza2392
    @hassanmirza2392 4 ปีที่แล้ว +8

    Your remake series is going well. Keep up the good work Mr. Banas.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you :) I'm happy so many people like them

    • @hassanmirza2392
      @hassanmirza2392 4 ปีที่แล้ว +2

      @@derekbanas Your series save my life at work, where I have to do complicated research related to the discipline of Scientific Computing. Instead of going through programming books I rely on your videos :)

    • @franciscogerardohernandezr4788
      @franciscogerardohernandezr4788 4 ปีที่แล้ว

      @@hassanmirza2392 ikr!! Modelling is tough and absorbs so much time. This is a life saver so we can focus on our real problem!!

  • @indiansoftwareengineer4899
    @indiansoftwareengineer4899 3 ปีที่แล้ว +1

    thanks for updated video, I have switched to C++ from Java for Codechef/ Competitive coding platform, and love your channel....
    and coming here for C++ video second time, i.e. first time as sophomore in university and then now....
    Thanks Derek.

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว +1

      Thank you for taking the time to tell me you liked them :) I appreciate it!

    • @indiansoftwareengineer4899
      @indiansoftwareengineer4899 3 ปีที่แล้ว

      @@derekbanas yeah man, you are most welcome.
      and thank you for replying to my comment...
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      .
      recursion goes here, without exit condition...
      :-)

  • @callumstewart5891
    @callumstewart5891 3 ปีที่แล้ว +3

    I didn't see you include the header file in your example of lambda expressions, might be worth a mention since I didn't know you needed to include that to get std::sort()

  • @TheODkilla
    @TheODkilla 4 ปีที่แล้ว +3

    Congrats on a million subs man!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much 😁

  • @damacx
    @damacx 4 ปีที่แล้ว +7

    God bless you man 🙏🏾. Just what I needed, C++ 14 for my job!!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +3

      Thank you :) I wish you the best with your job

  • @jonathanharoun5247
    @jonathanharoun5247 4 ปีที่แล้ว

    Hi Derek. It seems like your usage of the erase function at 30:50 is incorrect. The 2nd parameter should be str4.length() - 12 because with a function str4.erase(N, M), it erases the next M characters after the Nth character of the string str4. Also, str4.erase(12) accomplishes the same thing as str4.erase(12, str4.length() - 12)

  • @elkhanhamet2561
    @elkhanhamet2561 4 ปีที่แล้ว +6

    Derek, thank you so much man!!! You're truly a God sent to all of us. What an amazing way to save so much time while learning a whole language. God Bless you man and stay safe.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :) May God bless you as well

  • @Ascend777
    @Ascend777 ปีที่แล้ว

    1:46:53 Threads

  • @Lumary
    @Lumary 4 ปีที่แล้ว +1

    Congratulations on 1 million subs, Derek! 😊 Im watching your tutorials since 2 years, they are of great help. 👍

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you for the support :) I'm kind of amazed that I made it

    • @juliaifrank
      @juliaifrank 4 ปีที่แล้ว

      @Lumary Oh, nice to see you here too ;) Time to learn some C++ :)

  • @BrunodeSouzaLino
    @BrunodeSouzaLino 4 ปีที่แล้ว +3

    When can one expect a modern C++ tutorial? As in, no C headers, using algorithm, C++ random, smart pointers, passing values by reference when not using pointers and so on?

    • @BrunodeSouzaLino
      @BrunodeSouzaLino 4 ปีที่แล้ว +1

      @Peterolen My point is avoiding using C stuff instead of the STL, otherwise you might as well be doing "C with classes" instead of C++.

  • @sallyshanti3937
    @sallyshanti3937 4 ปีที่แล้ว

    Hi can you help me with this question c+
    ‏Write a C++ program that includes the following functions. , 1- Takes a one-dimensional array of integers, and the number of elements in the array and returns the maximum number in the array. 2- Takes a one-dimensional array of integers, and the number of elements in the array and returns the minimum number in the array. 3- Takes a one-dimensional array of integers, and the number of elements in the array and returns the standard deviation of the numbers in the array. In the main method of the program, define a one-dimensional array of integers of 100 elements. Ask the user about the number of elements (does not exceed 100 integers), and fill the array using rand function. Use the functions to print out the maximum, the minimum, and the standard deviation for the array.

    • @dante1054
      @dante1054 4 ปีที่แล้ว

      #include
      #include
      #include
      /*
      * Write a C++ program that includes the following functions:
      *
      * 1- Takes a one-dimensional array of integers, and the number of elements in the array and returns the maximum number in the array.
      * 2- Takes a one-dimensional array of integers, and the number of elements in the array and returns the minimum number in the array.
      * 3- Takes a one-dimensional array of integers, and the number of elements in the array and returns the standard deviation of the numbers in the array.
      *
      * In the main method of the program, define a one-dimensional array of integers of 100 elements. Ask the user about the number of elements (does not exceed
      * 100 integers), and fill the array using rand function. Use the functions to print out the maximum, the minimum, and the standard deviation for the array.
      *
      */
      using std::cin;
      using std::cout;
      using std::endl;
      int MaximumValue(int arr[], int size);
      int MinimumValue(int arr[], int size);
      float StandardDeviation(int arr[], int size);
      int main(int argc, char const *argv[])
      {
      // Array that will store 100 random integers
      int rndArr[100];
      int numElements;
      while (true)
      {
      // Ask the user about the number of elements
      cout > numElements;
      if (numElements >= 0 && numElements

  • @raviharanath
    @raviharanath 2 ปีที่แล้ว +1

    It's a very good refresher course for C++. Thank you!!

  • @JeremiahT
    @JeremiahT 4 ปีที่แล้ว

    One Million! I'm no TH-cam personality but that seems like quite a success. Congrats Derek!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you very much :) I'm definitely not a TH-cam personality. It took me over a decade to get here, but I'm thankful.

  • @ignabelitzky
    @ignabelitzky 3 ปีที่แล้ว +1

    Bookmark 1:28:00

  • @jacktrainer4387
    @jacktrainer4387 2 ปีที่แล้ว

    Never sat through one of these, but if you already know C and, perhaps just how to program in general, this is one of the shortest and least painful ways to go thru how to do that which you might otherwise do in Python or C in C++. Four Stars! First Rate!

    • @derekbanas
      @derekbanas  2 ปีที่แล้ว +1

      Thank you for taking the time to say you liked it :)

  • @averyfavreau3215
    @averyfavreau3215 ปีที่แล้ว

    awesome video, so much information! i've been wanting to learn a lower-level language for a while, but i find it very hard to focus on most tutorials, as most tend to be oriented to complete beginners. this is perfect for crash-coursing c++ for those with experience. thank you so much for this, just what i needed!!

  • @akagaming9431
    @akagaming9431 4 ปีที่แล้ว +1

    Hey there Derek, I've just started running and got injured on my left knee. I'm not new to running as I've done it in the past, but may I know an estimation of how many days should I abstain from running? Its not exactly worse because I can walk about 1.2 miles under 18 minutes, but I guess I should just take a break?

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +2

      Do what feels right for you. I personally ice and then heat back and forth. When I went through a period of knee issues I would wear a Pro-Tec patellar tendon strap and it helped a lot. Also understand that when I started running I hurt myself all of the time. I had black toes, twisted ankles, swollen knees, hip pain, etc. I've developed a lot of literal calluses all over my feet. That is why I can now run every day. It took me a long time to get where I am. Take care of your health. You'll need those knees for many years :)

  • @franciscogerardohernandezr4788
    @franciscogerardohernandezr4788 4 ปีที่แล้ว

    It took me like a week to digest your content. Including additional examples to get your ideas and typing it all from the screen(I am a masochist), the whole tutorial ended up as a 1000+ line file. Congrats for such a succinct approach to such a complex language.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :) You did it the right way. Take your time and digest and experiment

  • @kshau_
    @kshau_ 2 ปีที่แล้ว +1

    I watched 5 seconds of your video and figured that this would be fun because of your awesome voice!

    • @derekbanas
      @derekbanas  2 ปีที่แล้ว

      Thank you for the nice compliment :)

  • @mb-le9en
    @mb-le9en 4 ปีที่แล้ว +1

    Love the tut. C++ has made me a lot of money over the years!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      It is amazing to think how much so many developers have benefited the Earth by giving freely of their work!!! Statues should be built for these amazing people.

  • @akagaming9431
    @akagaming9431 4 ปีที่แล้ว +1

    Hello Derek Banas! Thanks for dropping by a new content. I've got a few questions regarding jogging that I wanna ask you about, considering your amazing & consistent streak in jogging every single day (via Strava).
    1) Right before you jog, what kinds of food do you eat to maintain constant energy?
    2) How long (hours) do you stop eating prior to jogging? I made a mistake once of eating 2 slices of cake and jog within 1 hour of my meal - I nearly puked haha.
    Thanks in advance.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +2

      Nice to see you again! Here are some things I've learned about jogging and normal mistakes I see new people make :
      1. Wait 2 hours after eating before running unless you eat something that digests super fast like BANANAS! (Not Kidding Bananas are just about the best fuel source)
      2. If I'm running a long distance which is over 10 miles, I'll eat 1/2 of a Clif bar 5 miles in. I hate gels, but to each their own.
      3. When starting out aim for distance and not speed. I started out running and then walking until my heart rate came down and then I'd run some more. Over time I stopped needing to walk.
      4. Hills and intervals will cause injuries and shouldn't be attempted until you can run at least 10 miles without stopping
      5. Run slow and long. Slow and long will give you the best health benefits being a strong heart, super strong legs and fat burning
      6. Make your run as fun as possible. I listen to audiobooks, podcasts, music, running apps, etc. If I get bored I start listening to something else. Boredom and not your bodies ability ends most runs.
      7. Chafing can be avoided by using Body Glide on your thighs and NexCare water proof tape on your chest
      8. You don't need fancy cloths. I wear shorts that cost $10 and any old t-shirt. The only thing I invested in was a merino wool jacket, which I wear when it is very cold. Also wear a knit hat when it is cold because most of your heat leaves your head. I do wear nice shoes (Brooks Glycerin), but I always buy previous year models which can be had for 50% off.
      9. Track yourself every day and put it near your mirror, or some place where you'll be every day. Be proud of your accomplishments!
      I think that is all that comes to mind. Always feel free to ask me anything about running. When I retire I'll probably run a 1/2 marathon every day.

    • @suyashbajpai9509
      @suyashbajpai9509 4 ปีที่แล้ว

      Hey Derek! You are great!
      All the best for anything and everything you do!

  • @geektechnique8233
    @geektechnique8233 4 ปีที่แล้ว +1

    I always love some fresh content from you Derek. I'll have to wait until next week to watch this though. Still can't wait to see your spring boot tutorial!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +2

      Thank you 😁 Sorry for the wait

  • @raynei
    @raynei 3 ปีที่แล้ว +1

    This was extremely helpful! I learned alot since I only knew about half of the concepts on the video.

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว

      I’m very happy to be of help :)

  • @zxa2001
    @zxa2001 4 ปีที่แล้ว

    Happy One million, Derek 🎉

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :)

  • @AAa-tn5rz
    @AAa-tn5rz 4 ปีที่แล้ว +3

    Could you do an updated video on blender 2.8 and one on Unreal engine? Thanks

  • @MxCrompli
    @MxCrompli 3 ปีที่แล้ว +6

    In an alternate universe "printf" just prints "f" to the console
    your welcome

  • @LouisPMorin
    @LouisPMorin 3 ปีที่แล้ว +1

    Really nice video. The value you can pack in under 3 hours is amazing. I got a full overview of C++ coming from many other languages.

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว

      Thank you :) I did my best to provide an overview of everything

  • @god.hand.
    @god.hand. 4 ปีที่แล้ว +2

    I always recommend this channel to my friends for learning any language. Bcoz of great explanation.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you for the compliment 😁

  • @kyle7382
    @kyle7382 4 ปีที่แล้ว

    Congrats on the 1M Derek, you absolutely deserve it!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :) I couldn't have done it without you

  • @kresimircosic3753
    @kresimircosic3753 4 ปีที่แล้ว

    Beast of a man. I have barely done anything in C++, but I can say knowledge of MySQL (thanks to you), general programming, OOP, even Linux terminal makes this video follow-able (is that a word?).

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you very much :) It makes me very happy to know that I've helped!

  • @dante1054
    @dante1054 4 ปีที่แล้ว

    I think this tutorial has the same error in the 3D array that I found in the Java tutorial. The correct interpretation of the 3D array must be array[layer][row][col]. Actually, we can see it as array[size_1][size_2]...[size_n]. Anyway, this is an excellent tutorial, Derek.

  • @johnvonhorn2942
    @johnvonhorn2942 4 ปีที่แล้ว

    Working through this on a Raspberry Pi 3b using Windows remote login. i am loving this, we owe you a cold beverage, Derek.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you :) I'm just happy that you liked it

  • @aloudia
    @aloudia 4 ปีที่แล้ว

    Congratulations for the million subscribers you the deserve another million. Thanks for the sharings and all your inspirational teaching.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you for the nice compliment :)

  • @tommybloomfield6690
    @tommybloomfield6690 4 ปีที่แล้ว +1

    Hey Derek, Love your tutorials! Keep it up!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you very much :) More are coming

  • @weirdafters4007
    @weirdafters4007 4 ปีที่แล้ว

    0:55:59 MORK haha, all jokes aside I just subscribed to your channel yesterday because of your C++ tutorials and you upload this compacted version! Just what I need for my job hunt prospects ! you are a blessing

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you :) I wish you the best on your job hunt

    • @weirdafters4007
      @weirdafters4007 4 ปีที่แล้ว

      @@derekbanas what do you think is a must know for someone senior year college looking for a c++ developer job? everything in this video or maybe more?

  • @SkyFly19853
    @SkyFly19853 4 ปีที่แล้ว +2

    Thank you for this tutorial!
    Btw, will you make any tutorial about Cython? ( C++ with Python )

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +3

      Thank you for watching my videos :) I'll look into a Cython video

    • @SkyFly19853
      @SkyFly19853 4 ปีที่แล้ว

      @@derekbanas You are welcome and thank you in advance for making Cython videos in the future. (^_^)

  • @dinozoe1795
    @dinozoe1795 4 ปีที่แล้ว

    Congratulations for 1M

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much 😁

  • @timstevens3361
    @timstevens3361 2 ปีที่แล้ว

    Derek Banas
    is a learning machine !
    Thank you for this Derek.

  • @rodneytheredmage3436
    @rodneytheredmage3436 4 ปีที่แล้ว

    Congrats Derek-sensei!!!! You deserve this and more!!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :)

  • @arielfuxman8868
    @arielfuxman8868 3 ปีที่แล้ว

    Great video! As someone who already has experience programming, this video is very informatial.

  • @tommacari4103
    @tommacari4103 3 ปีที่แล้ว

    Congrats on 1M subs and thank you for these videos!!!

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว

      Thank you very much :)

  • @poni2769
    @poni2769 2 ปีที่แล้ว

    1:08:28 No, it's not working, that's not the area of a circle with width 10.
    I can't find the bug tho. I was thinking that Circle constructors may need the "->" arrow when defining the width, but that not seems to be the case, at least your code works for me, outputs the area of the circle.

  • @taggerung890
    @taggerung890 4 ปีที่แล้ว

    Congrats on the 1M subs! Thanks for the video!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you very much :)

  • @deeputhomas9887
    @deeputhomas9887 4 ปีที่แล้ว +1

    using namespace std; Brilliant stuff! May want to point your viewers to the potential gotchas in this.

  • @UltimateDillon
    @UltimateDillon 3 ปีที่แล้ว +2

    i can feel my brain expanding more as each minute passes

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว +1

      That is the idea :)

  • @stevemerchant1862
    @stevemerchant1862 4 ปีที่แล้ว

    Hello Derek, As always, thanks very much for putting up this course. Fantastic! A great C++ refresher whilst in isolation. Stay well and thanks again. Steve

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you Steve :) I'm happy I could help during these trying times

  • @ShizzleMyChizzle
    @ShizzleMyChizzle 3 ปีที่แล้ว

    When people ask me about the smartest youtubers you are always one of the names I think of.

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว

      Thank you for the nice compliment. I promise you that I'm not that smart though.

  • @solarsystem8424
    @solarsystem8424 3 ปีที่แล้ว

    I'd like to suggest a deep dive (beginner, intermediate and advanced) tutorial series on creating raw (without MFC) win32 C++ software. A separate tutorial series about MFC would nice too.

  • @mehradzeinali9703
    @mehradzeinali9703 5 หลายเดือนก่อน

    best c++ tutorial out there

  • @ChiragBhatia94
    @ChiragBhatia94 4 ปีที่แล้ว

    Congratulations Derek! Your videos are really helpful :)
    Thank you

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :)

  • @wertiadreams7949
    @wertiadreams7949 3 ปีที่แล้ว

    this is literally best tutorial out there I can not thank you enough I went from living with my parents to becoming a Google employee

  • @anuragvohra5519
    @anuragvohra5519 3 ปีที่แล้ว

    Exacly what I was looking for , precise and to the point!

    • @derekbanas
      @derekbanas  3 ปีที่แล้ว +1

      Thank you very much :)

  • @akosimat2019
    @akosimat2019 4 ปีที่แล้ว

    I really happy that this video pop up in my recommendation, thank you very much for this tutorial much appreciated😊

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you :) I'm happy you enjoyed it

  • @securetech9798
    @securetech9798 4 ปีที่แล้ว

    YEAH!!!!!!!!!!!!!!!!! You are the best bro!!!!!!!!!! Thank you so much!!!!!!!!!!!!!! Finally over the hump and trying to make music making-software-plug-in's etc.....wow you are a big help....especially for those of us who put our heart's out there and try to follow it with strength-no-matter what... "....by what people mean by down and out..." Led Zepplin..... it feels good to get over the hump bro, thanks.....Big help!!!!!!!!!!!!!!!!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you :) I'm happy I could help

  • @vegasdealer777
    @vegasdealer777 ปีที่แล้ว

    Nice work, as always, Mr. Banas. Thank you.

  • @aphenkan
    @aphenkan 4 ปีที่แล้ว

    One more subscriber!! You are great! liked the Groovy tutorial as well!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you very much :)

  • @etiennelemieux472
    @etiennelemieux472 3 ปีที่แล้ว

    (currently watching this great tut) 1:34:50: Max("Dog", "Cat") == "Cat" ???

  • @2271masoud
    @2271masoud 4 ปีที่แล้ว +1

    Simply amazing, nothing less than the famous book of "the C++ programming language" by the creator of C++ Bjarne Stroustrup. but a bone to pick, I expected it to be a php tutorial :(

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +2

      Thank you :) PHP is next with MySQL. It will be longer than this video

    • @coderichardson4804
      @coderichardson4804 4 ปีที่แล้ว

      @@derekbanas cannot wait :D

  • @softwareminimalist
    @softwareminimalist 2 ปีที่แล้ว

    Great tutorial but I chuckled when you said "there has to be a better way" when you introduced pointers. Passing by value is the better way e.g. functional programming. ;)

  • @hbbss8684
    @hbbss8684 4 ปีที่แล้ว

    Sick! Thanks Derek!!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you :) Happy you like it

  • @nayldev9185
    @nayldev9185 4 ปีที่แล้ว +3

    "To Big" 28:42
    Grammar Error : main.cpp :: line 24
    Cannot use preposition 'to' before an adjective

    • @elthomas_
      @elthomas_ 4 ปีที่แล้ว

      Good job

  • @arquebus77
    @arquebus77 4 ปีที่แล้ว

    Long shot request, could you do a Swift backend web programming video using Vapor or Kitura? I really think that Swift is an underrated language and would like to see it replace Node, Java, Rails, etc for backend.
    Also unrelated question: I watch a lot of video tutorials for programming and I notice a lot of people record at very low volume so that I have to crank up the sound on my computer very high. Since you are knowledgeable on all things tech, can you think of a way to standardize recording volume so that everyone sounds loud and clear at regular volume? Maybe you could do a video on your sound setup so people who want to record videos for internet publication wont run into this problem.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      That is a great request! I'll see what I can do. As per recording you first need a good microphone and you need to put it right in front of your mouth. I use a Rode NT1 that I got a deal on, but a Blue Yeti or something like that is great.

  • @SkrtlIl
    @SkrtlIl 4 ปีที่แล้ว

    Its safer to compare pointers to nullptr instead of NULL

  • @homayounshokri5041
    @homayounshokri5041 4 ปีที่แล้ว +1

    Please make a tutorial on socket programming and networking.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +3

      I'm working on that with Python

    • @homayounshokri5041
      @homayounshokri5041 4 ปีที่แล้ว

      @@derekbanas really cool
      Tnx bro

  • @medusesti
    @medusesti 4 ปีที่แล้ว +1

    I was really hoping you would make a C++ video! THANK YOU!

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +3

      I hope you like it :) It took forever to edit

  • @thomasfink2385
    @thomasfink2385 2 ปีที่แล้ว

    E X C E L L E N T ! Short, concise, always to the point!

  • @btcuong
    @btcuong 4 ปีที่แล้ว

    Congratulations on your 1M subscribers!

  • @Weewoo12309
    @Weewoo12309 4 ปีที่แล้ว

    You are an absolute star ⭐️

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Thank you I try to do my best :)

  • @rahulpyd1
    @rahulpyd1 3 ปีที่แล้ว

    Someone may have pointed out -- a bug in stacks part -- the loop condition uses size() on the stack and while the stack is popped in the loop.

  • @vladpuha
    @vladpuha 4 ปีที่แล้ว +1

    Derek, Thanks for all your efforts to put out educational and well defined clear courses. Really helpful.
    I wonder if you think you will do a AI presentation in the same style.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว +1

      Thank you for the compliment :) My #1 goal is to make ML videos. I'm working on them now

    • @vladpuha
      @vladpuha 4 ปีที่แล้ว

      @@derekbanas Thank you. I have the bell on your videos now I will double that! (bell on squired - cannot wait)

  • @Ricocase
    @Ricocase ปีที่แล้ว

    Cool course. Discrete math class? Stochastic calculus course? Lost at 1:00 though.

  • @iagogonzalezrodriguez4935
    @iagogonzalezrodriguez4935 3 ปีที่แล้ว

    1:34:50 why Max("Dog", "Cat") returns "Cat"? I was expecting to return "Dog". Thanks!