What are header files in C++ ( PROGRAMMING TUTORIAL for beginners)
Vložit
- čas přidán 9. 06. 2024
- C++ header files are files that usually have .h extensions and they contain declarations of variables, functions... The implementation of those functions goes into the implementation file.
By doing this, if the implementation does not change, there is no need to recompile the implementation file, which would not be possible if everything was in one file.
This also gives us the option to reuse the functions that are declared in the header file in multiple .cpp files. In order to do that you just need to include the corresponding header file in the .cpp file that wants to use those functions.
In this C++ programming tutorial, you will learn what are header files, how to create your own header file, and how to include it and work with it.
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
👉 Download Visual Assist here: bit.ly/VisualAssistDownload
(It improves Visual Studio experience by quickly identifying and fixing code errors)
🎁 Download PVS-Studio for free with #code_beauty promo code: bit.ly/PVS-StudioFreeCB1
▶️ PVS-Studio CZcams channel - / @pvsstudio_channel
🇫 PVS-Studio Facebook group - / staticcodeanalyzer
☕ If you've found my content helpful and would like to support me, you now have the option to buy me a coffee or a cookie! It's a small gesture of gratitude that means a lot to me and helps me keep creating free educational videos for you. Use the link to make a contribution: bit.ly/CodeBeauty_BuyMeACoffee
However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇
Contents:
00:00 - Intro
02:38 - Before you learn header files, first understand this!
07:23 - What are header files used for?
08:17 - How program compilation works?
13:16 - How to create a header file and implementation file in Visual Studio 2019?
16:45 - What is include iostream?
21:37 - What is pragma once in header files
Learn how to install and use PVS-Studio in this video: • How to detect errors a...
C++ functions Playlist: bit.ly/2PkYpII
Tag me on you Instagram stories:
Instagram 📸 - / truecodebeauty
Twitter 🐦- / truecodebeauty - Věda a technologie
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
it says "your file couldn't be accessed" ...
@codeBeauty saldina i can not download a free e-Book about modern C++ and Lambda
helpful
I am so shocked at how well you are at demonstrating and explaining this concept. I am here because my C++ professor is horrible. I wish more professors were talented as you. Thank you!
🙏❤️
Honestly many professors are awful at actually teaching a subject matter they understand. Many are so smart they think everything about a particular subject is trivial.
Most Pisfers are just POS :)
and they are not as beautiful and pleasant looking as you are.
I think not so much of them stand in our shoes to think and teach. They are like: "OK here is my way of teaching trying to fit in"
I am the first year of computer science and get an assignment about libraries and finally carried away to this video about this header, thank you, miss your video really help me
This is the most amazing video of header in C++ I have ever seen in my life. This is just brilliant. I can't articulate enough praise to your way of teaching.
Thank you so much for these videos! In less than an hour, watching short videos from you, I understand so much more than I've learned in my college course over multiple months!
I just found this channel yesterday and I absolutely fell in love with the easy and detailed way you explain! Many things I couldn't understand about C++ now are starting to make sense. Thank you for your hard work!
If I could like this a billion times, I could... First time watching your tutorial.... I am officially a new subscriber of the channel...
What a coincidence! I woke up this morning and was wondering what exactly C++ header files are..
Seems like I'm about to find out!
Glad I could help! 🤗🤗
the destiny wanted u to learn C++ xdd
I was talking to a frind about Header files today, hahah
same
me too i was just looking at that last night
I love how you explain everything in such a clear, understandable and simple way. Universities need more lecturers like you!
Nice video, you have an expressive pronunciation, I can train in English and c++ by your video )) , with the best regards from Russia
It's great to hear that because I've been working a lot on my English so that I don't have an accent that is hard to understand. 🤗❤️💙
Many greeting to Russia 🇷🇺 🇷🇺
@@CodeBeauty I completely agree. You have an excellent accent. What is your native language? Regards from Mexico.
I love your tutorials.... No BS and everything is on point with a great example. Thanks ✌🏻
I like your tutorials they are very clear and well explained. Looking forward to the next one.
You r simple ,straight forward and makes the code really beautiful. thank you Saldina 😍
What's better than a excelent C++ tutorial with an beautiful teacher? I don't know the answer 😂. This was awesome to watch! Thank you.
I would advise everyone here that believes this wonderful woman is one of the best people online explaining coding topics to gather multiple sources when needing help understanding a particular coding aspect.
I too struggle understanding code. I wholeheartedly believe sometimes it takes multiple people explaining a topic in their own individual way for us some times to really drive home a concept.
That said this is my second video of yours Beauty that I have watched and you have really solidified my understanding on some things I’ve already “known” (or kind of knew).
Solid channel and you got yourself a new sub.
Thanks again.
Thanks for this video! I have almost no coding background and was trying to learn Game Boy development in C and needed to understand how headers work, but couldn't rack my brain around it. Your walkthrough made everything crystal clear. It was a perfect lesson.
No one made me understand c++ concepts or opp like you. I thinks you've to be the angel of the demonstration.
That's great to hear. ps: you have lovely profile picture 🥰😃
You did a fantastic job of explaining the header file concept in C programming. Thank you.
new subscriber, this channel deserves more attention. thank you so much.
Thanks, been trying this for over an hour and now I understand it!
You are one of the greatest youtubers that learn programming in a very easy and information way. Really you are the best.
Please provide us more about oob and arrays and vectors
Thank you, I'm happy to help and will continue doing it in the future ❤️🥰
Thank you for not only showing how to write the header, but showing how the computer processes each line and why it looks that way!
Saldina, you are the best teacher I ever had. All that you explain is so clear to me. Thank you so much for what you do :-)
You are an excellent teacher!
I must express my admiration for the remarkable manner in which you have conveyed your ideas and perspectives through your videos, despite the fact that it has been a span of two years since their original upload. It is with great appreciation that I acknowledge the timeliness of my encounter with your content, as it coincides perfectly with my current circumstances and interests.
Saldina, your videos are very helpful! Thank you!
The most beautiful tutor I've ever seen :)
Thanks a ton! I've been reading a bunch of example projects to glean information, but your clear explanation helped me put together a bunch of pieces of what I had been seeing. I really appreciate you making this video!
As a beginner in c++ you are a breathe of fresh air for coding explanations, you are very thorough and explain everything wonderfully. Thank you so much!
Outstanding explanation of header files!!
Brilliant explanation. The first time I completely understood this topic.
This material is gold and needs to be preserved
Thank you very much for this video. I took a C++ class last fall in college and due to Covid it had to be online. Well many details were not fully explored with the class due to it being online. Your video on headers really explained to me the use of these files. So again thank you for everything!!
This video really helps! I was struggling on this topic for a while and I finally got it. Thank you.
You have explained c++ header files very well.
best explanation i have ever heard , well done
You're such a good teacher, Thank you very muuuuuuuuuuch!!!!!!
OMG !!! Your explanation is absolute for beginners like me. I appreciate your clarities and demonstration you gave. Thank you so much Selena. ❤️ from SG
Once again...Your explanations are brilliant, this video was very helpful. Thank you
Very good explanation. The best I could find. Thank you so much.
Thanks for a great tutorial video, very comprehensive and clear.
Best regards
Thank you! I come from PHP and Java background and this video helped me a lot with my C++ project.
You explained it clearly
There is beauty in the way you make it easier to understand
I watched the entire course of c++ and yes you are so freaking good explaning and as teacher! Really beginner friendly and clear!
💜
This video is really helpful! Thank you so much!
You are making life easier for thousands of students like me, thanks for your efforts!
You are the best person who explained c++🌹⭐🌹
You are a great teacher 💕
Thank You for all your hard work!
Great Explanation & Easy To Understand, Thanks 🥰.
Perfect chunk of knowledge! Thank you!
Great and simple content, thank you so much 👍
I really like how she explains things
Super clear, thanks!
Can you do a video on header files with Classes and templates? Those are confusing for me. Btw I love your videos. I have commented this before but I'll say it again. You do a good job at explaining complex topics. And you do a better job at explaining stuff than my computer science teachers
is there one that she made? (since comment is from 2 years ago)
Great explination .. thank you very much !
now understood the concept THANKS!!, love from INDIA ✨✨😃
Thanks, excellent video !!
Greetings from Argentina!
Best Video on Internet for Beginner C++ Developers.😊
My lecturer has spent 2 weeks talking about stacks and queue but not how to create a header file or compile it. This video helped me a lot!!
This is the best explanation about the header files that I already found, thank you soo much!! I was struggling with the text that I found about the topic, greetings to you from Brazil !!! 😌🤗
Learned a lot, thx.
Omg, this is the best expression I've ever seen. My English is not so well and this is the only video I understand what headers do exactly. Thank you very much.
It's very easy to follow and understand. Thank you very much.
This video was so helpful, I was learning about header files after coming from java and this was so easy to follow! Thanks
You know what we programming learners struggle absolutely so well!
Thank You!!! Well explained!!
Thank you. Very concise.
Thank you very much. Nice explanation. from Morocco
Great video! Thank you!
Love from SriLanka. great explanation..
i love your tutorial saldina
Very good explanation. Thanks!
learning about header files in the textbook is so difficult, and you made it sound so easy, Arigatou
🙏💙
Love your work.
Not sure why I always struggle with this topic and now after 23 minutes understood!!! Thanks
👏☺️💗
Thank you so much, I can’t wait for the next tutorial 👍👍
You’re welcome! Coming soon! 😊
Wow, thank you so much. I am amazed how well you explain this. Thank you
Your explanation is very good and simple
Thank you so much for your videos. They give much better explanations than the college classes I am paying for!
I struggled a lot to understand certain topics at college as well, that's why I make these videos.
A lot of people gave up programming because of poorly explained lessons, but it doesn't have to be hard. Programming is our future and I'm glad to help and teach new generations of programmers who will nake this world a better place 😃❤️
Really good teaching more than our lectures.Nicely Explained and elaborated.
you are such a great tutor thanku so much
thanks a lot, this video was too helpful for me, your demonstration is very clear and simple, you're too supportive.
Thank you for this useful video!
I just want to say that I now understand head files now thanks to you ❤
Your codes and explanations are beautiful as you are xD
You are a good teacher. I understand it very well. It's important, who teaches and how
thank you very much you've helped me a lot
Very good approach, high sense of purpose, clarity and very good voice pitch. Excellent video. I look forward to more of your videos.
More to come! 🥰
it was so helpful , thank you so much , keep going !👍🏻
Thanks for the helpful video.
Excellent class
Wow the timing of this video ... God bless you
Fantastic, thank you
Thanks for the Tutorial! :)
Thanks a lot for such a nice and informative video, I always love the way you explain the topics, once again thanks a lot.
Always welcome! My pleasure!🤗🤗
Am currently working on a CPP project. your video saves my day, You are a guardian angel mam.
thank you really much your videos are really well explained and helpfull
This video was awesome! Thanks!