What are header files in C++ ( PROGRAMMING TUTORIAL for beginners)

preview_player
Показать описание
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 ⬇️

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.

I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
It is a powerful, secure text editor designed specifically for programmers.

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

Tag me on you Instagram stories:
Рекомендации по теме
Комментарии
Автор

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
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.

CodeBeauty
Автор

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!

notavailabull
Автор

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

hasbia
Автор

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!

karissaexplainsitadhdstyle
Автор

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!

andrespalma.
Автор

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.

cozymonk
Автор

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.

hh-mjnq
Автор

I love how you explain everything in such a clear, understandable and simple way. Universities need more lecturers like you!

angiexbreedt
Автор

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!!

stanmoonie
Автор

I love your tutorials.... No BS and everything is on point with a great example. Thanks ✌🏻

manideepadithya
Автор

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.

ryanunknown
Автор

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!

peterlantz
Автор

You r simple, straight forward and makes the code really beautiful. thank you Saldina 😍

hanirageh
Автор

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.

hsngraphics
Автор

I like your tutorials they are very clear and well explained. Looking forward to the next one.

dr_ned_flanders
Автор

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!

AlexDBall
Автор

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!

lazyayye
Автор

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!

dacharycarey
Автор

I watched the entire course of c++ and yes you are so freaking good explaning and as teacher! Really beginner friendly and clear! <3

vima
Автор

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!!

DizzyMay