Загрузка страницы

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.

🎁 Download PVS-Studio for free with #code_beauty promo code: https://bit.ly/PVS_Studio
▶️ PVS-Studio YouTube channel – https://www.youtube.com/channel/UCgOtSopdNjACcxXQpdGQEnA/
🇫 PVS-Studio Facebook group - https://www.facebook.com/StaticCodeAnalyzer

☕ I recently created the option for you to buy me a coffee/cookie, so if you enjoy my content and find it useful consider that small gesture of gratitude for all the hard work that I put into these videos. That would mean a lot to me! ❤️❤️❤️
https://bit.ly/CodeBeauty_BuyMeACoffee
Of course, don't feel pressured if you can't, I will continue posting free educational content for you nevertheless. 😇

Contents:
00:00 - Intro
02:48 - Before you learn header files, first understand this!
07:33 - What are header files used for?
08:27 - How program compilation works?
13:26 - How to create a header file and implementation file in Visual Studio 2019?
16:55 - What is include iostream?
21:47 - What is pragma once in header files

Learn how to install and use PVS-Studio in this video: https://youtu.be/AeyTSLGIX1M
C++ functions Playlist: https://bit.ly/2PkYpII

Tag me on you Instagram stories:
Instagram 📸 - https://www.instagram.com/TrueCodeBeauty
Twitter 🐦- https://twitter.com/TrueCodeBeauty

Видео What are header files in C++ ( PROGRAMMING TUTORIAL for beginners) канала CodeBeauty
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
31 марта 2021 г. 21:23:10
00:24:04
Яндекс.Метрика