What are header files in C++ ( PROGRAMMING TUTORIAL for beginners)
Ғылым және технология
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 KZread 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
Пікірлер: 595
📚 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.
@rogue_gamer2490
2 жыл бұрын
it says "your file couldn't be accessed" ...
@program5004
2 жыл бұрын
@codeBeauty saldina i can not download a free e-Book about modern C++ and Lambda
@sakado7596
Жыл бұрын
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!
@CodeBeauty
2 жыл бұрын
🙏❤️
@ryanunknown4181
2 жыл бұрын
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.
@mba2ceo
2 жыл бұрын
Most Pisfers are just POS :)
@azmiabduljalilajalil2355
2 жыл бұрын
and they are not as beautiful and pleasant looking as you are.
@findoc9282
2 жыл бұрын
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
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!
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.
I love how you explain everything in such a clear, understandable and simple way. Universities need more lecturers like you!
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.
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.
You r simple ,straight forward and makes the code really beautiful. thank you Saldina 😍
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!
If I could like this a billion times, I could... First time watching your tutorial.... I am officially a new subscriber of the channel...
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!
You did a fantastic job of explaining the header file concept in C programming. Thank you.
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.
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!!
new subscriber, this channel deserves more attention. thank you so much.
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!
@CodeBeauty
3 жыл бұрын
Glad I could help! 🤗🤗
@juanjocg1870
3 жыл бұрын
the destiny wanted u to learn C++ xdd
@wellingtoncarvalho1621
3 жыл бұрын
I was talking to a frind about Header files today, hahah
@marceloescamilla8867
3 жыл бұрын
same
@boythee4193
3 жыл бұрын
me too i was just looking at that last night
This video really helps! I was struggling on this topic for a while and I finally got it. Thank you.
OMG !!! Your explanation is absolute for beginners like me. I appreciate your clarities and demonstration you gave. Thank you so much Selena. ❤️ from SG
Thanks, been trying this for over an hour and now I understand it!
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!!
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 :-)
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!
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.
Nice video, you have an expressive pronunciation, I can train in English and c++ by your video )) , with the best regards from Russia
@CodeBeauty
3 жыл бұрын
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 🇷🇺 🇷🇺
@ivanetinajero
2 жыл бұрын
@@CodeBeauty I completely agree. You have an excellent accent. What is your native language? Regards from Mexico.
Once again...Your explanations are brilliant, this video was very helpful. Thank you
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 !!! 😌🤗
This video was so helpful, I was learning about header files after coming from java and this was so easy to follow! Thanks
Saldina, your videos are very helpful! Thank you!
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
@CodeBeauty
9 ай бұрын
Thank you, I'm happy to help and will continue doing it in the future ❤️🥰
Thanks for a great tutorial video, very comprehensive and clear. Best regards
Brilliant explanation. The first time I completely understood this topic.
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.
I watched the entire course of c++ and yes you are so freaking good explaning and as teacher! Really beginner friendly and clear!
@CodeBeauty
2 жыл бұрын
💜
Very good explanation. The best I could find. Thank you so much.
There is beauty in the way you make it easier to understand
Outstanding explanation of header files!!
The most beautiful tutor I've ever seen :)
thanks a lot, this video was too helpful for me, your demonstration is very clear and simple, you're too supportive.
You are making life easier for thousands of students like me, thanks for your efforts!
No one made me understand c++ concepts or opp like you. I thinks you've to be the angel of the demonstration.
@CodeBeauty
Жыл бұрын
That's great to hear. ps: you have lovely profile picture 🥰😃
This material is gold and needs to be preserved
This video is really helpful! Thank you so much!
best explanation i have ever heard , well done
Great Explanation & Easy To Understand, Thanks 🥰.
Thank You for all your hard work!
You have explained c++ header files very well.
Wow, thank you so much. I am amazed how well you explain this. Thank you
Perfect chunk of knowledge! Thank you!
You are an excellent teacher!
It's very easy to follow and understand. Thank you very much.
You're such a good teacher, Thank you very muuuuuuuuuuch!!!!!!
Thanks, excellent video !! Greetings from Argentina!
learning about header files in the textbook is so difficult, and you made it sound so easy, Arigatou
@CodeBeauty
2 жыл бұрын
🙏💙
Very good tutorial! It will be very good to see C# tutorials sometime in the future. I'm sure many people are trying to develop games in Unity with C#
Great and simple content, thank you so much 👍
Great explination .. thank you very much !
now understood the concept THANKS!!, love from INDIA ✨✨😃
Am currently working on a CPP project. your video saves my day, You are a guardian angel mam.
Thank you! I come from PHP and Java background and this video helped me a lot with my C++ project.
Super clear, thanks!
You are the best person who explained c++🌹⭐🌹
Thank You!!! Well explained!!
You are a good teacher. I understand it very well. It's important, who teaches and how
Your codes and explanations are beautiful as you are xD
I love your videos and finally comprehending what I should have been taught. Thank you. If by any chance can you create a video explaining how classes can be used in these files.
This video was awesome! Thanks!
Very good explanation. Thanks!
Thank you very much. Nice explanation. from Morocco
This video was really a great help for a student like me...... I asked the same question to my teachers.. "What header files?", They could not make me understand them clearly. This video gave me a complete insight about header files in reality.. Thank you very much for your effort....
Very good approach, high sense of purpose, clarity and very good voice pitch. Excellent video. I look forward to more of your videos.
@CodeBeauty
3 жыл бұрын
More to come! 🥰
23:01 It sure was! I can finally create the project I wanted to, but with finally practicing something AND making it more fun! Thanks, CodeBeauty, it really helped!
Great video! Thank you!
You are a great teacher 💕
Best Video on Internet for Beginner C++ Developers.😊
I just want to say that I now understand head files now thanks to 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!
@CodeBeauty
Жыл бұрын
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 😃❤️
You explained it clearly
Your regular student🤓 from Pakistan ❤️ Lots of love and respect for you Mam ❤️
@CodeBeauty
3 жыл бұрын
So nice of you. Thanks! 🤗❤️
@shahzaibkhan8971
3 жыл бұрын
@@CodeBeauty You are welcome Mam ☺️
@Zack-xz1ph
3 жыл бұрын
@@shahzaibkhan8971 It is spelled "ma'am" brother, it is short for madam
@shahzaibkhan8971
3 жыл бұрын
@@Zack-xz1ph thanks for the correction. But it was not a formal comment so it is acceptable 🙂
@shahzaibkhan8971
3 жыл бұрын
@@M.A.Kabir.K indeed ❤️
Really good teaching more than our lectures.Nicely Explained and elaborated.
Thank you. Very concise.
it was so helpful , thank you so much , keep going !👍🏻
Thank you for this lesson. I would love to continue with class and header .The form of writing.
Love your work.
Not sure why I always struggle with this topic and now after 23 minutes understood!!! Thanks
@CodeBeauty
2 жыл бұрын
👏☺️💗
Love from SriLanka. great explanation..
Thank you so much, I can’t wait for the next tutorial 👍👍
@CodeBeauty
3 жыл бұрын
You’re welcome! Coming soon! 😊
What you could do, in order to simplify your IF statements is convert the firstLetter to either an uppercase or lowercase and then in your IF statements only compare with lowercase or uppercase. Also, far fewer computational comparisons are made.
@user-lw7cg3ne3c
Жыл бұрын
but doesnt the algorithm for converting a letter to a certain case have its own if statements? with that, you only make your code more computational heavy
@WrinkledHound
Жыл бұрын
@@user-lw7cg3ne3c In times past, and maybe still today, you could convert lower case letters to upper case by ANDing the letter with hexadecimal df (decimal 223). Example: if (letter & 0xdf == 'Y') // converts lower 'y' to upper 'Y' and compares to 'Y' The AND operation is very fast with a bonus of not corrupting a letter that is already uppercase.
Thanks a lot for such a nice and informative video, I always love the way you explain the topics, once again thanks a lot.
@CodeBeauty
3 жыл бұрын
Always welcome! My pleasure!🤗🤗
Thank you for this useful video!
Learned a lot, thx.
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.
You know what we programming learners struggle absolutely so well!
Thanks for the Tutorial! :)
thanks for the video on header files its nice to only need to watch one channel instead of 5-10 to learn programming it has helped me learn alot better than the rate i was going at before
@CodeBeauty
3 жыл бұрын
I'm so happy to help! Cheers for your progress! 🤞🤞🤗
thank you really much your videos are really well explained and helpfull
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
@tanlu8120
3 ай бұрын
is there one that she made? (since comment is from 2 years ago)