I searched a lot, and finally I found such a brilliant video. Thank you so much !!! This is one of the best explainations I have ever seen, slow (so that everyone can follow) and also showing everything so that everyone understands. THANKS!
Ah, thank you! I looked up numerous videos on this because the C++ Udemy course I am taking introduced File Guards and I couldn't understand why the alias in the file guards could be so arbitrary, but the way you explained it helped clear that up perfectly. Thank you for that!
I love how you go through each line and explain what does what instead of what you should just do. It helps a lot when we understand why something is done instead of when you should just do it. You have a fan in me. Liked and Subbed, please do more videos.
Hey Paul, I found your video much better than the one I got linked in my class. Very clear, very simple and very fast. Thanks for your help! thumbs up!
Thanks for your content and Great video. Ive been learning c++ out of a text book for the past couple weeks and these videos are a great way to visualize and make those new connections of things i cant picture or wrap my head around while reading and writing notes.
This is greatly helpful and I like that you explained what ALL of the terms mean and what exactly is happening (ex. why "ifndef" is named the way it is) 👍
Best explanation you would find on youtube..bro just don't give up on sharing such awesome content. Thankyou for precious knowledge you have shared with us
(#pragma once) is not an original component of C++, as such it may work properly on some compilers but it may not work with some. Traditional Header guards will however safely compile in most if not all C++ compilers.
In Visual Studio, when you create a header file, there's an automatically created 1st line "#pragma once". As I understand, it serves the same purpose, but requires just 1 line of code.
I am dummie at C++ language and this was one of the best explanation I have seen. I just have one doubt, What is the meaning of "a.out" in the time 5:15? I don´t get it
RUclips has made it clear that my college professors were absolute garbage at teaching. You explained in a few minutes what I never learned in a 4 year degree. I just used the guards because I was supposed to. Also engine has now lost all meaning and doesn't sound like a real word anymore 😂
man, thank you so much! But i have one question: In inclusion of standard libraries (...) how can i wrapper those includes to avoid redeclaration? Im creating a library, so, i dont know what the user will include in his application.
Ok, nice, but this is only to make sure if you are doing that mistake it won't hurt the project but you can avoid it if you are 100% sure you are not doing this? Right? I mean, you can include the car only and it is ok right? you can use the engine.h content because car.h has it included, is it how this works?
This is the best explanation someone could give me for this issue.
Dude you're brilliant.
Awesome explanation, step-by-step. Keep it up!
9 years later and your video is still super relevant. You saved me from hours of useless work of trying to reconfigure my entire project structure.
So simple and straight to the point, truly a master at work!
I really loved that you went through the code step by step to show what the compiler was doing. That really helped, thanks!
I searched a lot, and finally I found such a brilliant video. Thank you so much !!! This is one of the best explainations I have ever seen, slow (so that everyone can follow) and also showing everything so that everyone understands. THANKS!
Ah, thank you! I looked up numerous videos on this because the C++ Udemy course I am taking introduced File Guards and I couldn't understand why the alias in the file guards could be so arbitrary, but the way you explained it helped clear that up perfectly. Thank you for that!
I love how you go through each line and explain what does what instead of what you should just do.
It helps a lot when we understand why something is done instead of when you should just do it.
You have a fan in me. Liked and Subbed, please do more videos.
Instant subscribe. Explained this faster in 5 minutes than my professor in 3 weeks
Hey Paul, I found your video much better than the one I got linked in my class. Very clear, very simple and very fast. Thanks for your help! thumbs up!
Hi Paul you have the best display screen than the other teachers well done
Thank you for explaning so clearly. I've had difficulties with this since i studied OOP with C++.
Most simple and clear definition, good job and thank you
THANK YOU my cs professor didn't teach us about fireguards when we entered classes and inheritance and this redefinition was killing me for hours.
Thank you for this explanation of file guards. I am fairly new to c++ and this was straightforward and easy to understand!
Thank you, I finally got the explanation that I can understand. Bravo!!!
Bro that was clearest explanation I have ever heard. Great Job buddy . Thank you
!
THANKS MAAN!!! I WAS STUCK ON THIS FOR A WHILE. YOUR EXPLANATION IS TOP NOTCH!
Thanks for your content and Great video. Ive been learning c++ out of a text book for the past couple weeks and these videos are a great way to visualize and make those new connections of things i cant picture or wrap my head around while reading and writing notes.
Gosh!!! yours explanation is so clearr.
This is so informative, explanations were very clear and it helped me a lot in my project, thanks, you got yourself a subscriber :D
Thanksss, simple and straightforward
This is greatly helpful and I like that you explained what ALL of the terms mean and what exactly is happening (ex. why "ifndef" is named the way it is) 👍
it's probably if not defined. there's also "ifdef", "if", "else", and "endif". i'm not sure about others but it's called preprocessor directives :)
Best explanation you would find on youtube..bro just don't give up on sharing such awesome content. Thankyou for precious knowledge you have shared with us
you are so genius you make me understanding Conditonal Compilation
Very clear and concise explanation, you have earned a subscriber!
I wasn`t planning to write a comment but bro thats awesome. thanks for the explanation.
Thanks a lot this help me a lot i am trying to fix this issue from 36 hours but now it's fixed thankyou so much
BEST EXPLANATION EVER!!!!!
Thank you so much! You just saved my project, you're my hero :p
Thanks for explaining every tid bit, this is rarely done in tutorials, Thanks!
The Best Explanation ever!
thank this is the best explanation I have found.
Brilliant. I just had a problem understanding the "#endif" directive. thank you
Perfect this is just what I was looking for!!
Exactly what I needed to know, thank's man!
My god you are a good teacher my friend!
Why are them fileguards in uppercase , what if the class was declared in uppercase
Thank you so much. This really cleared things up for me.
simple and straight to the point. thank you
Very good explanation... well explained with good example scenario..
Great explanation. Thank you Paul!!!😁
This is very useful for finding error in arduino library or debugging
This videos helped a lot! Subscribed and will binge watch
Thanks a lot , you explane me very good how to use header files and with g++ tool.
Thanks !
This tutorial is pretty clear! Thanks.
Thanks man i was having a hard time understanding it perfect thank you
Thank u thank u thank u
Just cant thank you enought
I learned something valuable and
Managed to solve my problem
Just subscribed
this was a good explanation paul.
youre a life saver man
This is really great. Thank you Paul.
Actually such a super helpful video thank you so much, what a 🐐
Thanks for that. Very clear and quick.
U SAVE MY LIFE BRO!!!!!!!
Crisp and Informative. Thanks
ah man thanks a lot it's been days since i am tried to find a solution to this problem
Very clear explanation! thanks
This was so helpful, thank you!!
Such a great explanation. Thanks!
brilliantly explained
Nice and Easy, awesome video!
you just give us a wonderfull answer . Thx
Best explanation ever!
Well explained Paul.
Best explanation. Thanks
Good tutorial! Keep up the good work!
explained it very well, subbed.
Just subbed. Thanks for clearing this up for me!
You should note about another approach (#pragma once)
Kirugan p Yes, that's a great idea. Thanks for the suggestion!
(#pragma once) is not an original component of C++, as such it may work properly on some compilers but it may not work with some. Traditional Header guards will however safely compile in most if not all C++ compilers.
the right approach is: do not nest includes
We don't use pragma once in this house . Standard c++ instructions only .
Excellent Explanation!
Thank you for this video I appreciate this a lot.
I love it! Cool explanation!
Excellent exaplaination
excellent explanation
this video is amazing. thank you so much
Great explanation! thank you.
Outstanding tutorial!!.. Subscribed... :)
very good explaination. Can you pls tell me, for what are header files exactly?
In Visual Studio, when you create a header file, there's an automatically created 1st line "#pragma once". As I understand, it serves the same purpose, but requires just 1 line of code.
I am dummie at C++ language and this was one of the best explanation I have seen. I just have one doubt, What is the meaning of "a.out" in the time 5:15? I don´t get it
brilliant video. Thank you
thanks a lot man !!! helped me a lot
very well explained!
Nice Explaination!!!
RUclips has made it clear that my college professors were absolute garbage at teaching. You explained in a few minutes what I never learned in a 4 year degree. I just used the guards because I was supposed to. Also engine has now lost all meaning and doesn't sound like a real word anymore 😂
thanks for the great explanation
Thanks a lot sir
Thank you so much! This helped!
man, thank you so much! But i have one question: In inclusion of standard libraries (...) how can i wrapper those includes to avoid redeclaration? Im creating a library, so, i dont know what the user will include in his application.
Great video, thanks!!
Good explanation thanks
Moral of the story:- fileguards are used to prevent the redefination of the classes or basically of your code
after seeing your video i login google account press like and subscribe the channel. Your videos are really helpful paul thankuu .
Thanks Paul.
Awesome Paul.
Thank you soo much ❤❤keep it up
is there a usecase where you would have multiple Fileguards and name them differently in the same file?
nice explanation
just a bigggg..THANK YOU
😇
Ok, nice, but this is only to make sure if you are doing that mistake it won't hurt the project but you can avoid it if you are 100% sure you are not doing this? Right? I mean, you can include the car only and it is ok right? you can use the engine.h content because car.h has it included, is it how this works?
you are awesome! thank you so much!