C++ Tutorial : C++ Full Course

  Рет қаралды 326,079

Derek Banas

Derek Banas

Күн бұрын

Пікірлер: 614
@derekbanas
@derekbanas 5 жыл бұрын
Table of Contents Install C++ : kzbin.info/www/bejne/epLQpnhuibJmrtE 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 : kzbin.info/www/bejne/b3yXf2mDhMSFZ7s
@bankoftrustnwobot3218
@bankoftrustnwobot3218 5 жыл бұрын
Derek Banas Many thanks for your awesome tutorials. Netbeans is a great choice 👍. My favorite series is the C programming :)
@יהוה-ע6מ
@יהוה-ע6מ 5 жыл бұрын
Its awsome What about openGL in one video ?
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@derekbanas
@derekbanas 5 жыл бұрын
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 жыл бұрын
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 жыл бұрын
Thank you :) I did my best to cover a lot
@zyghom
@zyghom 2 жыл бұрын
actually like 100x too fast as well - not only the speed of the speech - 30s for pointers? man ;-)
@blasttrash
@blasttrash 8 ай бұрын
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 2 ай бұрын
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 жыл бұрын
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 жыл бұрын
Thank you :) Yes it was made for people with experience in other languages
@nikolaaskaas
@nikolaaskaas 2 жыл бұрын
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 5 жыл бұрын
This tutorial is the best transition from c to c++. You're the best Derek ! And congratulations for the 1M subscriber :D
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :) I'm happy you found it useful
@justoneofwebcitizens
@justoneofwebcitizens 5 жыл бұрын
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 5 жыл бұрын
Thank you :) I'll always do my best to not waste peoples time
@nathanunderbsd5972
@nathanunderbsd5972 4 жыл бұрын
I Agree, it is a straightforward learning process is always with Derek. Simply smart move. - Don't work hard, work smart.
@simplejack2136
@simplejack2136 2 жыл бұрын
You do understand that you are not going to actually learn c++ in 2 hours by simply watching the video, right?
@EXTREMEKIWI115
@EXTREMEKIWI115 5 жыл бұрын
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 5 жыл бұрын
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 жыл бұрын
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.
@AbdulSamadDev
@AbdulSamadDev 5 жыл бұрын
Congratulations Derek 💐 You're truly a gem. Thank you so much for all of these tutorials.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) You're very kind to say that
@mryup6100
@mryup6100 2 жыл бұрын
I actually watched the whole thing! I really enjoyed it! It was perfect for someone who needs to refresh their C++ knowledge.
@charles-y2z6c
@charles-y2z6c 4 жыл бұрын
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 :)
@KH-cs7sj
@KH-cs7sj Жыл бұрын
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.
@2271masoud
@2271masoud 5 жыл бұрын
wow, 1 million subscribers. I've been waiting for this moment for a LONG time. well done Derek 🎉 you deserve it
@derekbanas
@derekbanas 5 жыл бұрын
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 жыл бұрын
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.
@priyankachoudhary3694
@priyankachoudhary3694 3 жыл бұрын
Loved this video man! It really prepped me to start my dsa practice, couldn’t find anything better than this on the internet !
@1Stormrider1
@1Stormrider1 3 жыл бұрын
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.
@hassanmirza2392
@hassanmirza2392 5 жыл бұрын
Your remake series is going well. Keep up the good work Mr. Banas.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) I'm happy so many people like them
@hassanmirza2392
@hassanmirza2392 5 жыл бұрын
@@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 жыл бұрын
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 жыл бұрын
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... :-)
@damacx
@damacx 4 жыл бұрын
God bless you man 🙏🏾. Just what I needed, C++ 14 for my job!!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you :) I wish you the best with your job
@gokusaiyan1128
@gokusaiyan1128 5 жыл бұрын
Next make a series on data structures using c++.
@derekbanas
@derekbanas 4 жыл бұрын
I'll see what I can do
@zxxczczczcz
@zxxczczczcz 3 жыл бұрын
@@derekbanas make
@discarded1669
@discarded1669 3 жыл бұрын
@@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
@blessdarah1256
@blessdarah1256 5 жыл бұрын
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 5 жыл бұрын
Thank you :) I'll see what I can do about more C++ tutorials
@gokusaiyan1128
@gokusaiyan1128 5 жыл бұрын
Next make an Algorithm course/playlist covering Cormen :). That book gives me nightmares
@peracc8862
@peracc8862 5 жыл бұрын
"How to Learn Everything in One Video"
@derekbanas
@derekbanas 5 жыл бұрын
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 жыл бұрын
哈哈哈 actually funny
@geodaet83
@geodaet83 4 жыл бұрын
@@derekbanas well, thats because you're a genius and the apple does not fall far from the tree ;-)
@finchat9407
@finchat9407 4 жыл бұрын
@@geodaet83 don't make excuses. You can learn too if you put your mind to it
@kshau_
@kshau_ 2 жыл бұрын
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 :)
@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 :)
@raviharanath
@raviharanath 2 жыл бұрын
It's a very good refresher course for C++. Thank you!!
@JeremiahT
@JeremiahT 5 жыл бұрын
One Million! I'm no KZbin personality but that seems like quite a success. Congrats Derek!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :) I'm definitely not a KZbin personality. It took me over a decade to get here, but I'm thankful.
@vekktrszcrowz2568
@vekktrszcrowz2568 4 жыл бұрын
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.
@elkhanhamet2561
@elkhanhamet2561 4 жыл бұрын
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
@bharathvajkm5650
@bharathvajkm5650 5 жыл бұрын
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 5 жыл бұрын
Thank you very much :) I'm working on Flutter
@mb-le9en
@mb-le9en 5 жыл бұрын
Love the tut. C++ has made me a lot of money over the years!
@derekbanas
@derekbanas 5 жыл бұрын
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.
@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
@TheODkilla
@TheODkilla 5 жыл бұрын
Congrats on a million subs man!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much 😁
@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!!
@raynei
@raynei 3 жыл бұрын
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 :)
@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
@Lumary
@Lumary 4 жыл бұрын
Congratulations on 1 million subs, Derek! 😊 Im watching your tutorials since 2 years, they are of great help. 👍
@derekbanas
@derekbanas 4 жыл бұрын
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++ :)
@geektechnique8233
@geektechnique8233 5 жыл бұрын
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 5 жыл бұрын
Thank you 😁 Sorry for the wait
@zxa2001
@zxa2001 5 жыл бұрын
Happy One million, Derek 🎉
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@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
@earlgreen8943
@earlgreen8943 3 жыл бұрын
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.
@aloudia
@aloudia 5 жыл бұрын
Congratulations for the million subscribers you the deserve another million. Thanks for the sharings and all your inspirational teaching.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for the nice compliment :)
@arielfuxman8868
@arielfuxman8868 3 жыл бұрын
Great video! As someone who already has experience programming, this video is very informatial.
@timstevens3361
@timstevens3361 2 жыл бұрын
Derek Banas is a learning machine ! Thank you for this Derek.
@yingzhining
@yingzhining 2 жыл бұрын
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.
@rodneytheredmage3436
@rodneytheredmage3436 5 жыл бұрын
Congrats Derek-sensei!!!! You deserve this and more!!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@Soccercrazyigboman
@Soccercrazyigboman 4 жыл бұрын
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?
@LouisPMorin
@LouisPMorin 3 жыл бұрын
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
@mehradzeinali9703
@mehradzeinali9703 5 ай бұрын
best c++ tutorial out there
@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 жыл бұрын
Thank you for taking the time to say you liked it :)
@god.hand.
@god.hand. 5 жыл бұрын
I always recommend this channel to my friends for learning any language. Bcoz of great explanation.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for the compliment 😁
@chrisallick
@chrisallick 4 жыл бұрын
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!
@tommacari4103
@tommacari4103 3 жыл бұрын
Congrats on 1M subs and thank you for these videos!!!
@derekbanas
@derekbanas 3 жыл бұрын
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
@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
@weirdafters4007
@weirdafters4007 5 жыл бұрын
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 5 жыл бұрын
Thank you :) I wish you the best on your job hunt
@weirdafters4007
@weirdafters4007 5 жыл бұрын
@@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?
@anuragvohra5519
@anuragvohra5519 3 жыл бұрын
Exacly what I was looking for , precise and to the point!
@derekbanas
@derekbanas 3 жыл бұрын
Thank you very much :)
@tommybloomfield6690
@tommybloomfield6690 4 жыл бұрын
Hey Derek, Love your tutorials! Keep it up!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you very much :) More are coming
@Ascend777
@Ascend777 Жыл бұрын
1:46:53 Threads
@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.
@dinozoe1795
@dinozoe1795 5 жыл бұрын
Congratulations for 1M
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much 😁
@taggerung890
@taggerung890 5 жыл бұрын
Congrats on the 1M subs! Thanks for the video!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@kresimircosic3753
@kresimircosic3753 5 жыл бұрын
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 5 жыл бұрын
Thank you very much :) It makes me very happy to know that I've helped!
@thomasfink2385
@thomasfink2385 2 жыл бұрын
E X C E L L E N T ! Short, concise, always to the point!
@vegasdealer777
@vegasdealer777 Жыл бұрын
Nice work, as always, Mr. Banas. Thank you.
@ChiragBhatia94
@ChiragBhatia94 5 жыл бұрын
Congratulations Derek! Your videos are really helpful :) Thank you
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@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
@UltimateDillon
@UltimateDillon 3 жыл бұрын
i can feel my brain expanding more as each minute passes
@derekbanas
@derekbanas 3 жыл бұрын
That is the idea :)
@josh1234567892
@josh1234567892 3 жыл бұрын
I gotta learn some c++ for next semester, definitely gonna use this!
@aphenkan
@aphenkan 4 жыл бұрын
One more subscriber!! You are great! liked the Groovy tutorial as well!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you very much :)
@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
@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
@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.
@SkrtlIl
@SkrtlIl 4 жыл бұрын
Its safer to compare pointers to nullptr instead of NULL
@deeputhomas9887
@deeputhomas9887 4 жыл бұрын
using namespace std; Brilliant stuff! May want to point your viewers to the potential gotchas in this.
@Weewoo12309
@Weewoo12309 4 жыл бұрын
You are an absolute star ⭐️
@derekbanas
@derekbanas 4 жыл бұрын
Thank you I try to do my best :)
@ignabelitzky
@ignabelitzky 3 жыл бұрын
Bookmark 1:28:00
@seifabomandor4579
@seifabomandor4579 3 жыл бұрын
cool
@zhivagojohnson4408
@zhivagojohnson4408 2 жыл бұрын
Great Video! A plethora of information!
@derekbanas
@derekbanas 2 жыл бұрын
Thank you very much :) I’m happy I could help
@BrunodeSouzaLino
@BrunodeSouzaLino 4 жыл бұрын
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 жыл бұрын
@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++.
@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)
@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.
@medusesti
@medusesti 5 жыл бұрын
I was really hoping you would make a C++ video! THANK YOU!
@derekbanas
@derekbanas 5 жыл бұрын
I hope you like it :) It took forever to edit
@MxCrompli
@MxCrompli 4 жыл бұрын
In an alternate universe "printf" just prints "f" to the console your welcome
@mutated__donkey5840
@mutated__donkey5840 3 жыл бұрын
F
@sharefactor
@sharefactor 3 жыл бұрын
*you're
@callumstewart5891
@callumstewart5891 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()
@wertiadreams7949
@wertiadreams7949 4 жыл бұрын
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
@wanderingknight10
@wanderingknight10 Жыл бұрын
Nice! Watch it on 2x speed..everyday until you understand.
@randlekehinde4987
@randlekehinde4987 5 жыл бұрын
Great timing Derek
@derekbanas
@derekbanas 5 жыл бұрын
It's taken to long to make an updated video
@scriptguru4669
@scriptguru4669 2 жыл бұрын
I've tapped away at c++ for years at a basic level, the pacing of this video is fantastic.
@derekbanas
@derekbanas 2 жыл бұрын
Thank you :) Happy i could help
@akagaming9431
@akagaming9431 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
Hey Derek! You are great! All the best for anything and everything you do!
@prakad97
@prakad97 5 жыл бұрын
Just when I decide to learn STL library and was not able find any good resource..thanks man..!!
@prakad97
@prakad97 5 жыл бұрын
Only STL library video might be great though..!!😅
@derekbanas
@derekbanas 5 жыл бұрын
I did my best to cover everything
@prakad97
@prakad97 5 жыл бұрын
@@derekbanas you are the best..!! ✌️
@btcuong
@btcuong 4 жыл бұрын
Congratulations on your 1M subscribers!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you :)
@seshathilakg2827
@seshathilakg2827 3 жыл бұрын
A True LEGEND !!!!
@AAa-tn5rz
@AAa-tn5rz 5 жыл бұрын
Could you do an updated video on blender 2.8 and one on Unreal engine? Thanks
@derekbanas
@derekbanas 5 жыл бұрын
I'll see what I can do
@loganhebert7475
@loganhebert7475 4 жыл бұрын
Hahaha wut.
@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.
@freeairdrop9375
@freeairdrop9375 5 жыл бұрын
Congratulations derek you r the man
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) I try to do my best
@temirkhanamanbaev42
@temirkhanamanbaev42 5 жыл бұрын
You are best from the best! Thanks!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for the nice compliment :)
@poni2769
@poni2769 3 жыл бұрын
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.
@2271masoud
@2271masoud 5 жыл бұрын
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 5 жыл бұрын
Thank you :) PHP is next with MySQL. It will be longer than this video
@coderichardson4804
@coderichardson4804 4 жыл бұрын
@@derekbanas cannot wait :D
@josejuliansalazarlopez724
@josejuliansalazarlopez724 4 жыл бұрын
Thank god you exist
@ThirumaleshHS
@ThirumaleshHS 5 жыл бұрын
See a notification of Derek's new video, instant click :-)
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much for doing that :D
you will never ask about pointers again after watching this video
8:03
C++ Programming
1:10:33
Derek Banas
Рет қаралды 4,8 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 123 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 4,7 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,3 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,1 МЛН
Object Oriented Programming (OOP) in C++ Course
1:30:26
freeCodeCamp.org
Рет қаралды 2,5 МЛН
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 576 М.
C++ Programming | In One Video
40:27
Giraffe Academy
Рет қаралды 193 М.
10 Crazy Python Operators That I Rarely Use
11:37
Indently
Рет қаралды 25 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 234 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 311 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 332 М.
how Google writes gorgeous C++
7:40
Low Level
Рет қаралды 895 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 123 МЛН