C++ Tutorial

  Рет қаралды 203,042

Derek Banas

Derek Banas

Күн бұрын

Пікірлер: 588
@derekbanas
@derekbanas 5 жыл бұрын
Learn in One Videos for Every Programming Language Subscribe to Bookmark them: bit.ly/2FWQZTx C++ : kzbin.info/www/bejne/iKbFXn2pn7Kbjbs Python : kzbin.info/www/bejne/hGXQdq18ec-kqqM Java : kzbin.info/www/bejne/pF7bcqSZd6iqqZY PHP : kzbin.info/www/bejne/bYWpYWOef65qbrs MySQL : kzbin.info/www/bejne/r4HYZ6SMasesq5Y JavaScript : kzbin.info/www/bejne/nJvYapyfbb6mfdU C# : kzbin.info/www/bejne/oprWmqqLj6-Lp7M HTML5 : kzbin.info/www/bejne/oXXce4FtprZ4iqM CSS3 : kzbin.info/www/bejne/eYbbeZKojLh8Z80 JQuery : kzbin.info/www/bejne/eIi7mJp4YrlkoLM TypeScript : kzbin.info/www/bejne/Y4G1kIunjJ59gLc ECMAScript : kzbin.info/www/bejne/gJLOoJxmfJ2feMk Swift : kzbin.info/www/bejne/mnzEoJ2Fj5KUsJo R : kzbin.info/www/bejne/qWSpoK2Mm8lqp5Y Haskell : kzbin.info/www/bejne/ZmPCeWaCn9aAqJo Handlebars : kzbin.info/www/bejne/annYcqGDa8dlmpo Bootstrap : kzbin.info/www/bejne/naKydqKLh5qFfsk Rust : kzbin.info/www/bejne/i2Kod5p5g7F3eJo Matlab : kzbin.info/www/bejne/hIS2hZ6hgLeUmKs Arduino : kzbin.info/www/bejne/h4DCe5-wZtajetk Crystal : kzbin.info/www/bejne/eqmpgWCNn9anqcU Emacs : kzbin.info/www/bejne/f5LKk6lvbJl6orM Clojure : kzbin.info/www/bejne/mZqqqnuhedqDd6c Shell : kzbin.info/www/bejne/nqjVn6CHqtKnhtk Perl : kzbin.info/www/bejne/jXbKmXyOqJ15bMU Perl6 : kzbin.info/www/bejne/omHdgaqenLyHna8 Elixir : kzbin.info/www/bejne/pnOxgJSsh9SBgpI D : kzbin.info/www/bejne/qKi9d4ekm56Verc Fortran : kzbin.info/www/bejne/lZCVhpp8g76anJo LaTeX : kzbin.info/www/bejne/jJnQnH-ohM9_qdk F# : kzbin.info/www/bejne/mWjIf3eAg5xobrc Kotlin : kzbin.info/www/bejne/fpDSeJxuqtp3pqM Erlang : kzbin.info/www/bejne/f3bLqJZoppatfZY Groovy : kzbin.info/www/bejne/eGqbm5Zuncmob8k Scala : kzbin.info/www/bejne/equppWOPoL-ibq8 Lua : kzbin.info/www/bejne/n37ElKuQhrKDjtU Ruby : kzbin.info/www/bejne/epvManSCeMyZpq8 Go : kzbin.info/www/bejne/eXechGeHj9qJaZI Objective C : kzbin.info/www/bejne/a5bWgqSQfq9rack Prolog : kzbin.info/www/bejne/iarOqYqme9yAfdU LISP : kzbin.info/www/bejne/r562ometfdekr7c Express : kzbin.info/www/bejne/rnWmfJaEd6umq6s Jade : kzbin.info/www/bejne/omakiZaOdrVnqJo Sass : kzbin.info/www/bejne/rauWnHiigcd4fqc
@codegenicsin1438
@codegenicsin1438 4 жыл бұрын
can i continue the tutorial just for learning cpp not the aurdino part
@revenevan11
@revenevan11 4 жыл бұрын
This is the best tutorial for starting out in C++ that I've found on the internet! My programming knowledge background was already knowing MATLAB and Wolfram Mathematica, but I had struggled to understand the names of things in C++ and the reasons for why certain things are or aren't required, and most importantly the patterns and thought process behind the structure of programs and syntax of the language. This video has finally explained what many just assume you know or will eventually just get, and now it's finally starting to come naturally to me so that I can look up functions I need and understand how to use them. Thanks!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you for the great compliment :) I'm very happy that these videos have helped!
@nimamaskani8255
@nimamaskani8255 6 жыл бұрын
OMG!! Thank you Derek! Best C++ tutorial i ever seen in my whole life. This one is so much better than your old C++ tutorial.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I constantly try to improve
@zac8790
@zac8790 5 жыл бұрын
Finally somebody who knows how to teach this material in a tutorial format. I was looking for a tutorial set to help my daughter learn C++. Wish I had you as a resource 10 years ago!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for the compliment :) I hope they help your daughter
@lrdyeah
@lrdyeah 5 жыл бұрын
Sir you helped me through python, mysql... now C++, and you got Qt at the end !!! Thank you for everything, greatly appreciate the help!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) It is my pleasure to be of service!
@exodus8814
@exodus8814 6 жыл бұрын
YAY HYPED THANKS DEREK:)))))) Edit: Some of the comments are literally pathetic. Like criticising Derek for using printf instead of std::cout.(some guy named Ralph said that) so pretty much some people ignored the entire 33 mins and focused on one little thing. *Wow* You do know that using a C function in a C++ tutorial will not automatically turn it into a C tutorial right? Please don't judge Derek because he's working hard to provide free educational videos for us. You should lay the criticism aside, and be thankful instead....
@derekbanas
@derekbanas 6 жыл бұрын
I hope you enjoy it :)
@exodus8814
@exodus8814 6 жыл бұрын
Derek Banas Just finished it now:) it's crystal clear. Thank you very very much Derek this is amazing. You're just awesome :)) May God bless you and your family. Take care :)
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for taking the time to tell me it helped and for watching the whole video :)
@exodus8814
@exodus8814 6 жыл бұрын
Derek Banas You're very welcome Derek :) I'm here again skimming through the video again. I want to make sure I understand C++ this time. It's a language I've battled with for about some time. I'm trying my best! Thank you :)
@derekbanas
@derekbanas 6 жыл бұрын
Always feel free to ask questions. I'll do my best to not only teach the language, but also how to solve problems with it
@levidavidmurray
@levidavidmurray 6 жыл бұрын
Hey, I just have a couple questions. 1. Why create a string variable, and then convert it to int, instead of just creating an int variable, and passing the user input into the int variable? 2. Why getline() instead of just cin >> variable? 3. When do you decide whether to use cout or printf?
@el_munoz
@el_munoz 6 жыл бұрын
At last C++. Thumbs up Derek!!!!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) It will take me probably 2 videos to get going, but it should be fun and challenging after that
@Ibnblackbird
@Ibnblackbird 6 жыл бұрын
God bless you. Hahaha thank you for your constant educational videos. I can't wait for this series to move forward. Keep it up brother.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) May God bless you and your loved ones.
@tomschweegmann
@tomschweegmann 3 жыл бұрын
Update for people watching now. If you don't have the C++ Project types like c/c++ Application etc you need to install the c++ plugin. Goto Tools>Plugins>Settings and mark the NetBeans PugIn Portal. After that under "Available Plugins" you can install the c++ Plugin. After you install it everything should be there like in the video :)
@PVTzzz
@PVTzzz 3 жыл бұрын
Wish I sorted by new comments before spending a bunch of time in google/stack exchange trying to figure this out. Anyway this answer is 100% correct.
@alfredomayes
@alfredomayes 6 жыл бұрын
The part where you said that we "were not going to use very often", around 8:10; is exactly what i needed! The struggle was real. Thank you so much!!
@derekbanas
@derekbanas 6 жыл бұрын
That's funny :) I'm glad it helped
@timonpasslick
@timonpasslick 6 жыл бұрын
Great tutorial, here are a couple of things I'd do different: You might want to do (int argc, char *argv[]). In 10:20, you can also use != instead of
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for the input :)
@timonpasslick
@timonpasslick 6 жыл бұрын
You're welcome.
@misterespresso
@misterespresso 6 жыл бұрын
Perfect timing! I've been going over your videos for web development for work, and now I can watch your newer vids for my college course! You are so much easier to understand!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) The next part will be up tomorrow morning
@PVTzzz
@PVTzzz 3 жыл бұрын
Ok some experiences from running this on netbeans 12.2 First for missing C++ projects see Tom Schweegman comment: update for people watching now. If you don't have the C++ Project types like c/c++ Application etc you need to install the c++ plugin. Goto Tools>Plugins>Settings and mark the NetBeans PugIn Portal. After that under "Available Plugins" you can install the c++ Plugin. After you install it everything should be there like in the video :) If you cannot enter any numbers into the output/console right click on project name on left side menu tree (windows 10), ie CppTutorial, go to Properties -> Run -> Console Type -> change to "Standard Output". For std:stoi error Unable to Resolve Identifier stoi (or stod) try this stackoverflow.com/a/23071043 but follow the first comment below this solution: For me the setting was under the drop-down list labelled , I assume that's effectively the same as manually adding it to . My non-netbeans Makefiles have , so that would probably work too, but it would have to go in the , since it's not in the drop-down list. - craq Dec 23 '14 at 12:56 Hope that saved you 10 minutes of googling!
@sergeytopalsergey713
@sergeytopalsergey713 6 жыл бұрын
That's what I've been looking for. Very high quality content!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :)
@jasonr5248
@jasonr5248 6 жыл бұрын
Thank you Derek =) This is a lot better than reading a book!
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy it's helping :)
@YTW-rw6pr
@YTW-rw6pr 6 жыл бұрын
"You don't believe in memorization" tell that to my CS department ;(
@JonathanDewetfunlifegod
@JonathanDewetfunlifegod 6 жыл бұрын
I have a paper I am taking soon that uses C++ so I thought I would get up to speed before starting the course. Thanks for making this video/series. Just like in all your videos you explain things in an easy to understand and encouraging manner. I also really like how you had the challenge at the end. I found it helpful to practise the stuff you talked about. Keep up the good work.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) I'm very happy that you found it useful
@sanjaykrishnagouda1270
@sanjaykrishnagouda1270 6 жыл бұрын
I respect what you're doing. I will comeback and support you in anyway I can when I can! Please Keep doing what you do!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) Many more videos are coming
@alexchow5625
@alexchow5625 5 жыл бұрын
Great and thorough tutorial. Each line and statement are clearly explained. Thanks!
@jasonchvat1071
@jasonchvat1071 6 жыл бұрын
Your video series are excellent as always. I'm hoping for more advanced C++ in this series. Keep it up, this is the best the internet can offer.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) It will start getting complex with the next video on lambda expressions
@janaebert3059
@janaebert3059 6 жыл бұрын
The precision for double ( 23:45 ) is not 10, it is 15.
@derekbanas
@derekbanas 6 жыл бұрын
Sorry i accidentally typed in 10 decimal places instead of 20
@MohanaKrishnaVH
@MohanaKrishnaVH 6 жыл бұрын
Hi Derek, Excellent Tutorial on Modern C++. Love the way you explain the concept with examples. I would like to request you to do a tutorial on Data Structure & Algorithms in C++.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) I'm happy I could be of help. DS & A are coming
@2271masoud
@2271masoud 6 жыл бұрын
so here comes the c++ documentation in more details than it's official website documentation. I read "Programming Principles & Practice Using C++ by Bjarne Stroustrup" few years ago but I think I can learn more by watching this video. Many thanks for this tutorial Derek.
@derekbanas
@derekbanas 6 жыл бұрын
I'll do my best to cover the vast majority of what anyone will ever want to learn :)
@GamingWithShadow
@GamingWithShadow 5 жыл бұрын
I did the last task as so: double dMiles; std::cout > dMiles; printf("%.1f miles equals %.4f kilometers", dMiles, (dMiles * 1.60934)); I don't really see the point in converting string to double in this case, when it's way more convenient to just use std::cin alone.
@robertobaldizon8206
@robertobaldizon8206 6 жыл бұрын
Excellent tutorial. Thank you very much, sir. Greatings from Argentina
@RonCoKat
@RonCoKat 6 жыл бұрын
basically what version of C++ are you teaching exactly? and are there any differences a beginner should be aware of ? why are you not ending the library calls with .h ? for example like so I am going to use notepad ++ myself, i hope it would serve me well. much respect Derek!
@derekbanas
@derekbanas 6 жыл бұрын
This is the latest version of C++. NotePad++ is ok, but you may find NetBeans easier to use because of compiling
@bazrafshan-l3e
@bazrafshan-l3e Жыл бұрын
I love your videos. From scratch to projects with Qt? Only in one playlist! And in C++! In other channels with Python, it is equal to several weeks!
@AdityaDodda
@AdityaDodda 6 жыл бұрын
@Derek Banas: The precision in double was more than 10 digits (@ 24 min). dbBigFloat2 has only 10 digits after the decimal. Hence, ans for sum.
@derekbanas
@derekbanas 6 жыл бұрын
Sorry I misspoke
@mateuszsmendowski2677
@mateuszsmendowski2677 5 жыл бұрын
Best tutorial on KZbin.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for the nice compliment :)
@RobFos
@RobFos 6 жыл бұрын
OMFG OMFG OMFG...!!! - I Cant believe it.......... The person I always wanted to learn C++ from. Wooow C++ Tut from Derek, Cant believe my eyes.... - And its a Big Playlist (Love You Dude) hahahahaaaa. - Yes I just bumped into this. KZbin feed algorithms suck, plus ive been busy with RL job. Thank you for doing this Derek :).
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'm very happy to be of help. I hope you like it
@siriacopereira3153
@siriacopereira3153 6 жыл бұрын
Freaking good tutorial, Derek Banas!😎
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@MrZoltack
@MrZoltack 6 жыл бұрын
Thumbs up for not using namespace std at the top of your file. I would like to see a video where you're creating your own makefile. Even though Netbeans and other IDEs create one for you so you don't have to worry about it, it's still beneficial to at least know the basics. I would also like to see how to set up the gdb or the debugger in Netbeans or VS Code since that's also extremely beneficial. Also I like all your videos.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for the input :) I'll do my best to cover all of the above
@itaco8066
@itaco8066 6 жыл бұрын
Derek thank you very much, Greetings from the Netherlands!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I never thought I'd say this, but can I have some of your warm weather :D
@zeecole5062
@zeecole5062 6 жыл бұрын
if u use visual studio, you can just press CTRL + F5 after saving for a console. just a bit easier
@rollno.2763
@rollno.2763 6 жыл бұрын
Derek will you also talk about shared pointer, static cast or dynamic cast other advanced c++ topics.
@derekbanas
@derekbanas 6 жыл бұрын
Yes this will be a long tutorial. Expect about 30 videos plus additional ones with Arduino. I'll probably do advanced algorithms, GUI development, and numerous other topics I get asked about all the time
@rollno.2763
@rollno.2763 6 жыл бұрын
Derek Banas great waiting for your advanced c++ topics.Thanks
@jokinglimitreached1503
@jokinglimitreached1503 6 жыл бұрын
+Derek Banas I can't wait! C++
@up4life108
@up4life108 6 жыл бұрын
+Derek Banas cannot wait for it! I'm so hyped rn
@siriacopereira3153
@siriacopereira3153 6 жыл бұрын
That's good noteced that Derek gonna talk about Gui developing in C++
@heyallnorahere
@heyallnorahere 6 жыл бұрын
Thank you for making a new C++ tutorial! :D
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy I could be of help :)
@hziebicki
@hziebicki 6 жыл бұрын
Thanks derek :)Great stuff as always
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@neelsingha8872
@neelsingha8872 6 жыл бұрын
Much needed. Thanks Derek
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@viraatchandra8498
@viraatchandra8498 6 жыл бұрын
Thanks for this video, really excited for the series. Can you please cover advanced topics like const correctness, move semantics, generic template programming, anonymous namespaces, allocators, template specialisation etc...
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy to hear that :) Yes all of the above will be covered
@pavelpavlov8143
@pavelpavlov8143 6 жыл бұрын
Great one,thanks Derek!!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@exnihilo6059
@exnihilo6059 6 жыл бұрын
slightly different but it works. #include #include #include #include #include #include int main(int argc, char** argv) { std::string sMiles; double dMiles, anser; const double kilometers = 1.60934; std::cout
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for sharing :)
@shubhmittal1189
@shubhmittal1189 5 жыл бұрын
Wow I thoroughly enjoyed this. Can you please explain me a bit about using namespace std
@KIos56
@KIos56 5 жыл бұрын
Here is the example, gist.github.com/NedzadNeziri/02f3949a16f604a686fe9073a96c78b4 When using namespace std, you're referring to the standard library. So if you create function as in example cout, there will be conflict name there. So please use std:: (because when you start to work with bunch of code, there might me issues)
@adolfocoy7516
@adolfocoy7516 6 жыл бұрын
He is back!!
@derekbanas
@derekbanas 6 жыл бұрын
Yes indeed :)
@utkarshsrivastava5461
@utkarshsrivastava5461 9 ай бұрын
Thanx Derek 🙏
@ariton2990
@ariton2990 6 жыл бұрын
at 31:40, why are you storing user`s input in string? Why didnt you just do integer?
@strangecuriousandunusual
@strangecuriousandunusual 6 жыл бұрын
I've been looking forward to a C++ series for a long time. I am very excited for this series. Also quick question, will you be covering anything on openGL, DirectX, SDL, or SFML in this series? It'd be really interesting to learn some graphics/game programming in C++. Thanks for all the awesome tutorials! PS: Never stop being awesome
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) I'll do my best with it. I'll probably dabble with OpenGL a bit. The amount I cover will be determined by demand. For games I'll use UE4 because I have the most experience with it and the community for it is fantastic.
@draakisback
@draakisback 6 жыл бұрын
Its been so long since I've looked at any c++. I forgot how messy the syntax is. So glad rust is a thing.
@derekbanas
@derekbanas 6 жыл бұрын
I'll do my best to write clean code
@draakisback
@draakisback 6 жыл бұрын
Derek Banas your code is pretty clean for cpp, I just find the general syntax of cpp to be prone to being messy. The >> syntax for instance is pretty sloppy to look at as far as readability goes. Perhaps it's because ive been working with rust, dart and ocaml quite a lot in the past few months but it makes me get goosebumps to look at CPP. Anyhow, good video.
@devilmanscott
@devilmanscott 6 жыл бұрын
Don't go near Haskell than, it's really hard to read sometimes, because of its use of terse language features, but yes, I like Rust, but I would argue there's not much difference between the two, considering both are heavily influenced by C, and for me personally being used to C styled languages I find it quite bearable. Though if you feeling languages are unbearable, give yourself a quick dose of Assembly or shell script, quickly appreciate languages even C++.
@DodgyBrothersEngineering
@DodgyBrothersEngineering 5 жыл бұрын
If possible could you describe in a few short sentences (or maybe a short video) the difference between C, C++ and C#. I have come from a VB background and naturally gravitated towards C#. From what I understand C and C++ are more outright power focused languages, but not so graphics friendly. Just wondering if there is a huge difference in the syntax and the general application between them and C#.
@psibarpsi
@psibarpsi 3 жыл бұрын
My compiler does not recognise stoi(). What do I do? Btw, from which version of C++ did we have this function?
@Fataho
@Fataho 6 жыл бұрын
Thank you for your efforts!
@derekbanas
@derekbanas 6 жыл бұрын
It is my pleasure to help :)
@harshmishra9941
@harshmishra9941 6 жыл бұрын
which are the good resources you would suggest for learning c++ ,📒📒📒📒📓📓📓📓📙📙📙💰💰💰📄📄📄📰📰📰📰📧📧📧💽💽💻💻💻💿💿💿
@derekbanas
@derekbanas 6 жыл бұрын
The book in the description is very good, but I cover way more in this tutorial series
@AK-jp9bm
@AK-jp9bm 6 жыл бұрын
It'll be really helpful if you cover classes and oop based problems in CPP..thanks .. I wish I could meet you one day ..
@derekbanas
@derekbanas 6 жыл бұрын
I will definitely do that
@cd-ux9ot
@cd-ux9ot 6 жыл бұрын
Hi Derek I think you meant to say 15 points of precision at 24:00. Thanks for this tutorial series
@derekbanas
@derekbanas 6 жыл бұрын
Yes I accidentally only added 10 decimals to 20, which caused me to make that error
@Squaredprogramming
@Squaredprogramming 6 жыл бұрын
I wish there were more resources like this when I was learning to how to program.
@derekbanas
@derekbanas 6 жыл бұрын
Thanks for the compliment :) I'm doing my best to cover everything
@cReidMoose
@cReidMoose 6 жыл бұрын
Goodness. At the very beginning I thought your mouse was a dead pixel on my screen and about had a heart attack.
@aimendondo
@aimendondo 6 жыл бұрын
Great video tutorial. Thanks for educating us.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for watching my videos :)
@chimpionboy
@chimpionboy 6 жыл бұрын
Good job Derek
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@textexadecimal9340
@textexadecimal9340 6 жыл бұрын
When using gcc(the g++ command specifically), the compiler won't recognize the printf function unless the stdio.h header is included in the source code(without any compilation flags, at least). I typically don't use an IDE but it isn't much of a hassle to just include C headers. However, I did notice something similar with the C# tutorials. When following along with the Mono C# compiler, libraries would have to be referenced by the user at compilation, unlike with Visual Studio. Perhaps, in a future discussion, it would be helpful to address differences between compiling in IDEs and with standalone compilers. PS, loving the tutorial so far. EDIT: I know the c++ 14 standard was mentioned in one of these first few videos, but I don't know if the command to specify it was shown. Just in case, g++ -std=c++14 file.cpp or g++ -std=c++NUM file.cpp (where NUM is the number of the standard) should invoke the standard necessary. In my case c++11 and c++14 both compiled the code containing the printf function.
@ahmeterdem9312
@ahmeterdem9312 6 жыл бұрын
Hi Derek, can you make a C++ Template Meta-Programming tutorial sometime in the future? I think that is very interesting and very core part of what people call Modern C++. Most people(tutorials) just skip that part of the language. Moving some computation and functionality from Run-time to Compile-time might be interesting and fascinating for me. I know it is a huge subject but maybe you can go over the basics, Thanks
@timonpasslick
@timonpasslick 6 жыл бұрын
Ahmet Erdem And don't forget about constexpr, it's one of my favourite key words.
@derekbanas
@derekbanas 6 жыл бұрын
I will definitely cover that topic. Thank you for the request :)
@jacobgasser3093
@jacobgasser3093 6 жыл бұрын
Hey, I am here, 29:30 and you were able to run it fine with no errors, but I am not. I am having issues with line 17 and 18. Net beans is "Unable to resolve the Identifier" on stoi. What do you think the problem is?
@jacobgasser3093
@jacobgasser3093 6 жыл бұрын
And I went on to your next video, and I copied and pasted from your website. I am still getting the same error. I don't understand why.
@vinhnghiang1273
@vinhnghiang1273 2 жыл бұрын
I love your "AENNNND"
@ibrahimnasir4487
@ibrahimnasir4487 6 жыл бұрын
hey at 27:45 when you do the getline() why is it that you don't need to do the std::
@rajatparab8116
@rajatparab8116 6 жыл бұрын
Thankyou sir Love from India
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) It is amazing to be able to help people all over the world!!!
@ToniVarga
@ToniVarga 6 жыл бұрын
I love your videos, you really helped me with C++ and python. Can you please make another c++ tutorial where you explain classes and objects through some real world examples?
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) Yes I'll cover both in depth
@moatazmujahid2654
@moatazmujahid2654 6 жыл бұрын
Hi, Derek Why "C++ in One Hour a Day, Sams Teach Yourself" is the best book for c++?
@1OJosh
@1OJosh 4 жыл бұрын
We gave 10 books to 10 different students, out of all 10, one of them was a goat. The goat learned C++, he was learning from the book you mentioned
@zardingeorge7080
@zardingeorge7080 5 жыл бұрын
In 23:40 Hello Derek, actually double has 15 precisions, not 10.
@MrLast98
@MrLast98 7 ай бұрын
dumb question, but since we're working with 5 decimals, i did it with floats rather than doubles. Code worked, results are the same, and considering that you showed us that precision for floats are around 6 decimals, it should keep the same precision, right?
@FritsvanDoorn
@FritsvanDoorn 6 жыл бұрын
Hi Derek, I liked this video too! Can you do an other where you use the std:cin like the std::out with >>? And also, can you make a video about making applications for a Mac that uses windows, with buttons, textboxes etc.? I know already to do this in Visual Basic and C#. Thanks for your great videos!!!!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'll do both. I plan on using QT for cross platform development at this time
@JonathanDewetfunlifegod
@JonathanDewetfunlifegod 6 жыл бұрын
When I did the challenge I had a problem in my code that I couldn't figure out. I decided to try and put sMiles in the printf statement. It came up with a "cannot pass non-trivial object of type 'std::string'" error here is my code: std::string sMiles; double dKilometers; std::cout
@sandorgomori4789
@sandorgomori4789 6 жыл бұрын
Great video! Thanks for your efforts! I got a problem, I'm new to programing... 11:30 I got lost in the terminal part... could anyone help me through that part again ? I can't manage to successfully change my directory to CppTutorial , compile and run it...
@josephathomas776
@josephathomas776 6 жыл бұрын
Great Video ! Thank you so much .
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :)
@fvazquez64
@fvazquez64 6 жыл бұрын
Thanks Derek I appreciate your effort to teach something so important a C++. I have a question: this code may be applied to any version of C++ or what version are you using for this tutorial? Regards!
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy you have found it useful :) This is mostly C++ 14 with a little C++ 17 later on which is the most up to date version.
@jung_sascha
@jung_sascha 6 жыл бұрын
Hi Derek again a great video. People like you is, what the internet has been designed for. Sharing their knowledge :) Do you recommended learning C before starting with C++? I'm currently only working with Java, but I want to be able to use pointers and stuff like that. I am always kind of unsure whether to learn with your videos because it is more motivational, at least for me, than a plain textbook or getting a book and getting tired of it after a few chapters. If you, or any other of you guys have any suggestions, I would love to hear them.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for the nice compliment :) You can learn C++ instead of C. C++ is C and can do anything C can, but more.
@jung_sascha
@jung_sascha 6 жыл бұрын
Thank you so much. :)
@mika2666
@mika2666 6 жыл бұрын
yeeees, thank you!
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy you liked it :)
@crooked8168
@crooked8168 6 жыл бұрын
You are a genius!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you for the compliment :) I wish I was
@actualprogramming
@actualprogramming 6 жыл бұрын
Hey Derek, just take a look at here 23:40 you summed, 20 dec places with 10 dec places DOUBLE. Is the result correct?
@derekbanas
@derekbanas 6 жыл бұрын
FANTASTIC CATCH! You are correct a double has 15 points of precision. Thank you for watching the video so close and for pointing that out. Sorry about the error.
@marcofazzalari4630
@marcofazzalari4630 6 жыл бұрын
Hello, I've been trying to learn coding for a few weeks and I was wondering, storing input data as a string and then convert them to numeric values has a purpose in coding, like is it some sort of useful, or you just did that to show how to convert string to other data types? Good tutorial by the way!
@153ridzzzz
@153ridzzzz 6 жыл бұрын
Hey derek, can you do like advanced c++ tutorials with algorithms and data structures?
@derekbanas
@derekbanas 6 жыл бұрын
Yes those are coming
@153ridzzzz
@153ridzzzz 6 жыл бұрын
Ty good sir!!
@jsonkody
@jsonkody 6 жыл бұрын
Hi Derek, is the version you teaching C++17? Is a big difference between c++11, 14, 17?
@derekbanas
@derekbanas 6 жыл бұрын
Hi, I'm using C++ 14 because there isn't 100% stability between the different compilers for C++ 2017. Eventually I'll cover what changed in C++ 2017 though
@pdad
@pdad 6 жыл бұрын
i am so fucking happy i found this channel
@Hunter-fy1tp
@Hunter-fy1tp 6 жыл бұрын
Love this series! Plan on doing C# with UWP at any point??
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) Yes I'll see what I can do
@PremChand-tv3yq
@PremChand-tv3yq 6 жыл бұрын
Hi Derek, could you let us know a bit about your process of recording these tutorials? They are so seamless and perfect. You dont even stutter. How do you manage to do that? Do you script and record the audio separately and then record the video?
@derekbanas
@derekbanas 6 жыл бұрын
Thanks for the compliment :) I have a little list of everything I want to cover and then hit record and start writing code. Very little scripting goes into the videos. I then however go back and edit out all the pauses turning 1 hour videos into 30 minute videos. The editing makes me sound smarter :D
@MindaugasGrigaitis
@MindaugasGrigaitis 6 ай бұрын
It's been 6 years since this course was released, is it still viable or should I look for something newer?
@gabrielarcia8482
@gabrielarcia8482 6 жыл бұрын
whats the difference between Getline(std::cin, snum1) and std::cin >> snum1 to read input?
@lucianoval903
@lucianoval903 4 жыл бұрын
Hi Derek, I'm wonder which one is your favourit language.
@derekbanas
@derekbanas 4 жыл бұрын
Python is what I use for most everything I do from web development (Django) to data science. I also use JavaScript and C# for most everything else. I used to use C++ a lot for hardware development. I don't see much reason to learn anything except those languages.
@AK-jp9bm
@AK-jp9bm 6 жыл бұрын
Nice video, waiting for long as when you posted you'll do on CPP , god bless you sir for sharing all these knowledge .. thanks a lot
@derekbanas
@derekbanas 6 жыл бұрын
Many more are coming and fast. May God bless you as well :)
@eprofengr6670
@eprofengr6670 6 жыл бұрын
Cool thanks for keeping up a new version. Do you have any examples of code you make for development boards like Raspberry Pi or Arduino board ?
@derekbanas
@derekbanas 6 жыл бұрын
Yes I have an multipart Arduino tutorial here kzbin.info/www/bejne/f2fNeoKIfpx-aM0
@speedygabriel1
@speedygabriel1 6 жыл бұрын
i personally prefer visual studio. its a bit more clean and easier to start projects and save them in places
@derekbanas
@derekbanas 6 жыл бұрын
I choose NetBeans only because it works on every OS
@speedygabriel1
@speedygabriel1 6 жыл бұрын
i like how you make sure your tutorials work everywhere
@kiany2k
@kiany2k 6 жыл бұрын
As great as always!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
@ridwannana-yawamoako2939
@ridwannana-yawamoako2939 6 жыл бұрын
Derek have you done pthreads in any of your c++ tutorials and javathreads in your java tutorials? Thanks for all your videos!! your a genius as a teacher myself I wonder how many hours you put into making all these videos. wow. Thanks again.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) I will cover threads in the next C++ tutorial. I covered Java threads here kzbin.info/www/bejne/fF6mnJSLbcaEkKs The hardest part is editing the videos. I normally record them in about 30 - 40 minutes with not much previous work. Editing then takes about 1.5 hours. It is what I was meant to do though and it makes me happy to help people.
@ridwannana-yawamoako2939
@ridwannana-yawamoako2939 6 жыл бұрын
Actually I asked because, Im learning parallel processing and CUDA programming. Perhaps in the future u'd like to do something on CUDA with C++. cheers!!
@derekbanas
@derekbanas 6 жыл бұрын
Yes that would be fun
@descobrindocoisas2812
@descobrindocoisas2812 Жыл бұрын
Hi, I'm studying and I want to work with Devops and cloud, what language do you think is worth learning and specializing in? Am I studying C#, Java, Golang, Python or Typescript?
@haldarnitish
@haldarnitish 6 жыл бұрын
THANK YOU SO MUCH
@nikolaikalashnikov4253
@nikolaikalashnikov4253 6 жыл бұрын
Please do a C++ video on making *libraries* : both *compile-time* libraries & *runtime* libraries (aka static & dynamic)... as this is a great way to solve problems & re-use code.
@derekbanas
@derekbanas 6 жыл бұрын
I'll definitely do that
@ahmedaly3818
@ahmedaly3818 6 жыл бұрын
Hi Derek, thank you for video. I was facing problems in example 3. At the beginning, stoi function was highlighted in red and gave me this error Unable to resolve identifier stoi. I then switched the project settings for the c++ to use C++11 as you mentioned in one of the comments with a similar problem. It took the error away, but not the project builds but fails to run. I tried to find out what was causing it by commenting lines, and the problem is in using type std::string. It is not giving me any errors at all and builds, but fails to run for some reason. I even tried running a program that does not do anything with just one line having a variable of type std::string, and also it fails to run. Any idea what could be cause this problem? i can not find anything related online.
@firesean_
@firesean_ 6 жыл бұрын
Derek, I do not understand C++ very well even after this video I still struggled understand I have watched your Python videos and understood it perfectly. Is there a video I should watch before this to understand better?
@derekbanas
@derekbanas 6 жыл бұрын
Please ask me any questions that you have and I'll help.
@mohanish007
@mohanish007 4 жыл бұрын
is this turtorial for beginners of expereinced programmars??
@muhammadaminualiyu8937
@muhammadaminualiyu8937 6 жыл бұрын
good one, its really cool.
@evry1tookem
@evry1tookem 6 жыл бұрын
Great as always! Are you planning on doing some sort of GUI in this series?
@derekbanas
@derekbanas 6 жыл бұрын
Yes probably QT
@sathyakotari136
@sathyakotari136 6 жыл бұрын
thanks a lot Derek
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
C++ Tutorial 2 : Conditionals, Arrays, Vectors, Strings, Loops
32:14
C++ Tutorial 20 : C++ Regex 2
15:14
Derek Banas
Рет қаралды 13 М.
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
C++ Tutorial 5 : Strings & Math
27:31
Derek Banas
Рет қаралды 31 М.
go is great i hate it
14:44
SST
Рет қаралды 20 М.
C++ Tutorial 7 : Solving Problems
26:03
Derek Banas
Рет қаралды 26 М.
Should you learn Rust in 2025?
11:11
Let's Get Rusty
Рет қаралды 28 М.
C++ Tutorial 12 : Operator Overloading & File I/O
28:30
Derek Banas
Рет қаралды 35 М.
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Programming with Mosh
Рет қаралды 4,4 МЛН
УЛИЧНЫЕ МУЗЫКАНТЫ В СОЧИ 🤘🏻
0:33
РОК ЗАВОД
Рет қаралды 7 МЛН