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

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 602

  • @CodeBeauty
    @CodeBeauty  3 года назад +41

    📚 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
      @rogue_gamer2490 3 года назад

      it says "your file couldn't be accessed" ...

    • @program5004
      @program5004 2 года назад

      @codeBeauty saldina i can not download a free e-Book about modern C++ and Lambda

    • @sakado7596
      @sakado7596 2 года назад

      helpful

    • @soumyadipmajumder3450
      @soumyadipmajumder3450 5 месяцев назад

      Can We write the Food.h header file like this:
      #pragma once
      #ifndef FOOD_H
      #define FOOD_H
      const char* RecommendMeAFood(char firstLetter);
      #endif // !FOOD_H

    • @soumyadipmajumder3450
      @soumyadipmajumder3450 5 месяцев назад

      Can I write Header file like this:
      #ifndef FOOD_H
      #define FOOD_H
      const char* RecommendMeAFood(char firstLetter);
      class Food {
      public:
      void GetPaneerTikkaRecepie();
      };
      #endif // !FOOD_H

  • @notavailabull
    @notavailabull 3 года назад +208

    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
      @CodeBeauty  3 года назад +7

      🙏❤️

    • @ryanunknown4181
      @ryanunknown4181 3 года назад +17

      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.

    • @azmiabduljalilajalil2355
      @azmiabduljalilajalil2355 2 года назад +1

      and they are not as beautiful and pleasant looking as you are.

    • @findoc9282
      @findoc9282 2 года назад +1

      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"

    • @yuxiangwan1124
      @yuxiangwan1124 2 года назад +4

      @@ryanunknown4181 I think many professors. they prefer to put more their effort on research instead of teaching...

  • @hasbia2060
    @hasbia2060 2 года назад +4

    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

  • @hh-mj4nq
    @hh-mj4nq Год назад +3

    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.

  • @DizzyMay123
    @DizzyMay123 2 года назад +1

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

  • @karissaexplainsitadhdstyle
    @karissaexplainsitadhdstyle 3 года назад +10

    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!

  • @mahmoudelrasool8684
    @mahmoudelrasool8684 Год назад +1

    No one made me understand c++ concepts or opp like you. I thinks you've to be the angel of the demonstration.

    • @CodeBeauty
      @CodeBeauty  Год назад

      That's great to hear. ps: you have lovely profile picture 🥰😃

  • @andrespalma.6364
    @andrespalma.6364 Год назад +2

    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!

  • @sriramm3260
    @sriramm3260 2 года назад

    Am currently working on a CPP project. your video saves my day, You are a guardian angel mam.

  • @peterlantz7966
    @peterlantz7966 3 года назад

    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!

  • @lazyayye1143
    @lazyayye1143 Год назад

    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!

  • @joseramonlopez1113
    @joseramonlopez1113 3 года назад +1

    Not sure why I always struggle with this topic and now after 23 minutes understood!!! Thanks

  • @engineersacademy4137
    @engineersacademy4137 Год назад +2

    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
      @CodeBeauty  Год назад

      Thank you, I'm happy to help and will continue doing it in the future ❤️🥰

  • @angiexbreedt9798
    @angiexbreedt9798 Год назад

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

  • @cozymonk
    @cozymonk 2 года назад +2

    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.

  • @bowasmuke9149
    @bowasmuke9149 3 года назад

    There is beauty in the way you make it easier to understand

  • @Pikod
    @Pikod 3 года назад

    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.

  • @ryanunknown4181
    @ryanunknown4181 3 года назад +2

    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.

  • @Albaraa_Sabrin
    @Albaraa_Sabrin Год назад

    You are the best person who explained c++🌹⭐🌹

  • @danbrown6698
    @danbrown6698 3 года назад +1

    You know what we programming learners struggle absolutely so well!

  • @lavanyasureshkannan123
    @lavanyasureshkannan123 2 года назад

    This material is gold and needs to be preserved

  • @AlexDBall
    @AlexDBall 3 года назад +37

    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!

  • @puneetsaravanan
    @puneetsaravanan 3 года назад

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

  • @zorimech
    @zorimech 3 года назад +5

    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.

  • @gauravnawale8595
    @gauravnawale8595 3 года назад +1

    You are making life easier for thousands of students like me, thanks for your efforts!

  • @sofianetaleb5818
    @sofianetaleb5818 3 года назад +1

    I really like how she explains things

  • @ZeeRooGee
    @ZeeRooGee Год назад

    I just want to say that I now understand head files now thanks to you ❤

  • @yaMuntaqim
    @yaMuntaqim Год назад +1

    Thank you! I come from PHP and Java background and this video helped me a lot with my C++ project.

  • @yutinggu3652
    @yutinggu3652 2 года назад

    Wonderful videos helps me lot to my college class. Your video is better than my professor lectures. Without you I can not pass data structure class. I really appreciate.

  • @songaogutu
    @songaogutu 3 года назад

    You have explained c++ header files very well.

  • @ericc5652
    @ericc5652 3 года назад +30

    Nice video, you have an expressive pronunciation, I can train in English and c++ by your video )) , with the best regards from Russia

    • @CodeBeauty
      @CodeBeauty  3 года назад +12

      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
      @ivanetinajero 3 года назад +3

      @@CodeBeauty I completely agree. You have an excellent accent. What is your native language? Regards from Mexico.

  • @chrishipolito6857
    @chrishipolito6857 3 года назад +30

    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
      @tanlu8120 9 месяцев назад

      is there one that she made? (since comment is from 2 years ago)

  • @_Mrunalwankhede
    @_Mrunalwankhede 2 года назад

    learning about header files in the textbook is so difficult, and you made it sound so easy, Arigatou

  • @hsngraphics8228
    @hsngraphics8228 Год назад

    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.

  • @hanirageh4701
    @hanirageh4701 3 года назад +1

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

  • @maxg4958
    @maxg4958 Год назад

    Brilliant explanation. The first time I completely understood this topic.

  • @vima9046
    @vima9046 2 года назад +2

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

  • @eidnoxon
    @eidnoxon Год назад +3

    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!

  • @prateekWaynes
    @prateekWaynes 3 года назад +3

    now understood the concept THANKS!!, love from INDIA ✨✨😃

  • @necbranduc
    @necbranduc 3 года назад +11

    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.

    • @ВикторАндриевский-н2ы
      @ВикторАндриевский-н2ы Год назад

      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
      @WrinkledHound Год назад

      @@ВикторАндриевский-н2ы 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.

  • @dacharycarey4951
    @dacharycarey4951 9 месяцев назад

    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!

  • @radomone
    @radomone 3 года назад +2

    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
      @CodeBeauty  3 года назад

      I'm so happy to help! Cheers for your progress! 🤞🤞🤗

  • @ellegendariosupertallarin8735
    @ellegendariosupertallarin8735 2 года назад +1

    You're such a good teacher, Thank you very muuuuuuuuuuch!!!!!!

  • @fender_fan
    @fender_fan 2 года назад +1

    Thank you so much for your videos. They give much better explanations than the college classes I am paying for!

    • @CodeBeauty
      @CodeBeauty  2 года назад

      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 😃❤️

  • @DevAnand7750
    @DevAnand7750 2 года назад +1

    Really good teaching more than our lectures.Nicely Explained and elaborated.

  • @DeepakRavi-r4u
    @DeepakRavi-r4u 21 день назад

    hi Salina I am from India you are explaining very well. especially your smile is awesome.

  • @christopherlee5696
    @christopherlee5696 2 года назад

    OMG !!! Your explanation is absolute for beginners like me. I appreciate your clarities and demonstration you gave. Thank you so much Selena. ❤️ from SG

  • @ingmarneple6072
    @ingmarneple6072 2 года назад

    Thanks, been trying this for over an hour and now I understand it!

  • @stanmoonie6508
    @stanmoonie6508 3 года назад

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

  • @AbhishekKumar-zv1kn
    @AbhishekKumar-zv1kn Год назад

    Best Video on Internet for Beginner C++ Developers.😊

  • @emmanueladigwe2973
    @emmanueladigwe2973 3 года назад

    You did a fantastic job of explaining the header file concept in C programming. Thank you.

  • @asgardia-1977
    @asgardia-1977 3 года назад

    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 :-)

  • @manideepadithya1120
    @manideepadithya1120 Год назад +1

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

  • @thomaspfaff1074
    @thomaspfaff1074 3 года назад

    You are a good teacher. I understand it very well. It's important, who teaches and how

  • @lookatrobot
    @lookatrobot 5 месяцев назад +1

    You explain every topic very well, thanks.

  • @shahzaibkhan8971
    @shahzaibkhan8971 3 года назад +22

    Your regular student🤓 from Pakistan ❤️
    Lots of love and respect for you Mam ❤️

    • @CodeBeauty
      @CodeBeauty  3 года назад +5

      So nice of you. Thanks! 🤗❤️

    • @shahzaibkhan8971
      @shahzaibkhan8971 3 года назад +3

      @@CodeBeauty You are welcome Mam ☺️

    • @Zack-xz1ph
      @Zack-xz1ph 3 года назад

      @@shahzaibkhan8971 It is spelled "ma'am" brother, it is short for madam

    • @shahzaibkhan8971
      @shahzaibkhan8971 3 года назад +1

      @@Zack-xz1ph thanks for the correction. But it was not a formal comment so it is acceptable 🙂

    • @shahzaibkhan8971
      @shahzaibkhan8971 3 года назад

      @@M.A.Kabir.K indeed ❤️

  • @hans3835
    @hans3835 Год назад

    The way CodeBeauty is able to explain this concept is simply put, beautiful😍🥰😘

  • @scott22v
    @scott22v 3 года назад

    The video I watched before this one was "What is system("pause") and why is it considered a BAD PRACTICE? C++ Programming Common Questions" But in this video you use it.

  • @MrBojo-jv4qq
    @MrBojo-jv4qq Год назад +1

    I didn't know that you can return a string via character pointer. Very good explanation. Thanks.

    • @deboramozart2632
      @deboramozart2632 10 месяцев назад

      Why she didn't use it? I'm mean there's any advantage on using const char* pointer over a return string?

  • @christosioannou9990
    @christosioannou9990 2 года назад +1

    Once again...Your explanations are brilliant, this video was very helpful. Thank you

  • @onlyeyeno
    @onlyeyeno Год назад

    Thanks for a great tutorial video, very comprehensive and clear.
    Best regards

  • @Satscape
    @Satscape 3 года назад +6

    Thank you for answering my question. I get it now... it's still annoying having to define each function twice (coming from C# and Java), but at least now I know what's going on behind the scenes and the reasons for doing it that way. Also the #pragma once is a handy tip, I was using the #ifndef ...#define...thing.

    • @hbm293
      @hbm293 3 года назад +1

      The #ifndef / #define / #endif if still useful when you use compilers that don't support the pragma once (ok, almost none nowadays). And you can find completely different views on the pragma once usage on the Internet.

  • @jamal.musa.elzein
    @jamal.musa.elzein Год назад

    Your explanation is very good and simple

  • @ahmadosama2652
    @ahmadosama2652 2 года назад

    best explanation i have ever heard , well done

  • @Tferdz
    @Tferdz 3 года назад +4

    you don't need 'else if', if you returned from the first 'if' (guard clause). just do 'if-return' pattern and end with a 'return', without using 'else'.

    • @CodeBeauty
      @CodeBeauty  3 года назад +1

      Agreed! Thanks for contributing with this advice. It is a great tip! 🤗🤗

  • @vinniciusrosa8284
    @vinniciusrosa8284 2 года назад

    Very good explanation. The best I could find. Thank you so much.

  • @dr_ned_flanders
    @dr_ned_flanders 3 года назад +3

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

  • @JoemyJoseph
    @JoemyJoseph 2 года назад +1

    Wow, thank you so much. I am amazed how well you explain this. Thank you

  • @alexanderizmaylov3419
    @alexanderizmaylov3419 3 года назад +1

    The most beautiful tutor I've ever seen :)

  • @mydsmart8390
    @mydsmart8390 3 года назад +1

    You explained it clearly

  • @konoko-o3o
    @konoko-o3o 3 года назад

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

  • @Duge6124
    @Duge6124 3 года назад

    Wow the timing of this video ... God bless you

  • @CharlesSmall
    @CharlesSmall 3 года назад +1

    Thank you for the video. I want to be a developer. To write my own programs. I am learning from your tips.

  • @edinfific2576
    @edinfific2576 3 года назад

    Hello, my fellow Bosnian! :D
    I have come across this video totally by accident while looking for a header file explanation. I am very glad I did. I am also happy to see that we are in the same country, the most beautiful country in the world.
    I am starting with some ESP32/micro-controller programming, and it is hard to comprehend the C language as I have never worked with or studied it before, especially when most online tutorials are merely about copy-pasting code and writing lines of code without explaining it in detail.
    I am fairly knowledgeable and experienced in analog electronics, but have only recently started with digital. It took me some time to comprehend the markings on MCUs, had no idea what GPIO and others meant. Now it's code-learning time, and it is a steep learning curve.
    Na Bosanskom:
    SLUČAJNO sam naletio na ovaj video tražeći objašnjenje za "Header file", zanimalo me i ko je ova djevojka koja ovako lijepo i dobro objašnjava korake u programiranju, pa sam još jednom bio prijatno iznenađen, ako ne i šokiran, kad sam shvatio da se radi o Bosanki u Bosni. Svaka čast djevojko, želim ti svaki uspjeh i da imamo puno više takvih talentovanih kao ti (izvinjavam se ako te iz početka ne oslovljavam sa vi, za mene većina ljudi nisu stranci, pogotovo ne oni koji se bave naukom i strukom srodnom mojoj).
    Što se tiče kafe (kahve ;) ), volio bih da te lično počastim kad budem u prolazu.
    Imam jedan zahtjev/pitanje: trenutno radim na razvijanju pametne gradske rasvjete i zato mi je potrebno znanje u programiranju. Trenutno ne znam nikoga od stručnjaka ili studenata u tom području koji bi mogli pomoći, pa na tome radim sam, ali ide sporo, kao i svaki početak. Nabavka komponenata izaziva dodatno kašnjenje. Ako si zainteresovana ili znaš nekoga ko bi bio zainteresovan za ovakav projekat, možemo se kontaktirati.
    Izvinjavam se za ovako dug "komentar", inače gledam da pišem ukraće.

  • @mic9047
    @mic9047 2 года назад

    This video really helps! I was struggling on this topic for a while and I finally got it. Thank you.

  • @juanmauriciomugni5783
    @juanmauriciomugni5783 3 года назад

    Thanks, excellent video !!
    Greetings from Argentina!

  • @Cesar33-pl
    @Cesar33-pl 3 года назад

    You are an excellent teacher!

  • @Anonymous_31036
    @Anonymous_31036 3 года назад +1

    hello mam your presentation skill is excellent. very helpful video. thank you

  • @dennisrose8793
    @dennisrose8793 Год назад

    Outstanding explanation of header files!!

  • @Saad_Hamad
    @Saad_Hamad 3 года назад

    thanks a lot, this video was too helpful for me, your demonstration is very clear and simple, you're too supportive.

  • @immasage8514
    @immasage8514 3 года назад +1

    Searched for this the whole night 🥲.. thanku 🙏🙏🔥🔥

  • @abdo-ar-888
    @abdo-ar-888 2 года назад

    Great Explanation & Easy To Understand, Thanks 🥰.

  • @gravisan
    @gravisan 4 месяца назад

    I learnt a lot about perl today.

  • @touficjammoul4482
    @touficjammoul4482 3 года назад

    new subscriber, this channel deserves more attention. thank you so much.

  • @nagaprasad4445
    @nagaprasad4445 2 года назад

    Great Video for Beginners! I want a video on how to include new libraries in Visual C++

  • @MrAlb3rtazzo
    @MrAlb3rtazzo 3 года назад

    i am one of your loving student from UK :) I like a lot the way you teach :)

  • @mwelwamukelabai182
    @mwelwamukelabai182 11 месяцев назад

    You are a very good teacher. I am glad I came across this video. Please assist with a video that's able to come up with a C++ program for scanning QR cords on invited annual ball guests which should show them their respective table numbers. Please use Dev C++ editor

  • @jalambo_ahmed
    @jalambo_ahmed 3 года назад +15

    With all my heart, I hope that you will reach your goal and desire, and I wish God to make you happy in your life.👌

    • @CodeBeauty
      @CodeBeauty  3 года назад +2

      Thank you so much! You are very genuine and good person! 🙏💙

  • @drdahmed5396
    @drdahmed5396 3 года назад

    Thank you very much. Nice explanation. from Morocco

  • @dgadstv3876
    @dgadstv3876 3 года назад

    Gwapa kaayo! I started programming in 1990 and my favorite were Turbo Pascal, then clipper, then vb6... but all are obsolete though my apps in vb6 are still in use. I never wanted to learn c++ nor dot.net but your videos make me realize that I should have to but it's quite too late.

    • @charlesschmidt4272
      @charlesschmidt4272 2 года назад

      I started with Fortran in 1970 so don't say it's too late!

  • @fmanzano1
    @fmanzano1 3 года назад

    It's very easy to follow and understand. Thank you very much.

  • @JiRodya
    @JiRodya 3 года назад

    This video was so helpful, I was learning about header files after coming from java and this was so easy to follow! Thanks

  • @victoriale6719
    @victoriale6719 3 года назад

    Saldina, your videos are very helpful! Thank you!

  • @acidrain9924
    @acidrain9924 3 года назад

    A video explaining some header guards and ifndef etc will be really really useful

  • @mehulparmar4720
    @mehulparmar4720 3 года назад +2

    Love from india 😊 ❤️❤️
    I always watch your video regularly ...
    Love you 🤗

    • @CodeBeauty
      @CodeBeauty  3 года назад

      Thank you so much 😀 You're the best! Manny greetings to India! 😊❤️

  • @dinushkapiyumal7809
    @dinushkapiyumal7809 3 года назад +1

    Love from SriLanka. great explanation..

  • @YossefInbram
    @YossefInbram 3 месяца назад +1

    amazing explanation !!! thank you !

  • @gabrielcouto4356
    @gabrielcouto4356 2 года назад +1

    Fantastic, thank you

  • @charlycv-dev
    @charlycv-dev 3 года назад +2

    Hello Saldina, thank you for share this information. Please, Could you to share a video about lambda functions?, thank you. Regards.

  • @manoyal
    @manoyal Год назад

    This was a good explanation but this deserves a part 2 where you explain how to do it when our main.cpp has classes, when we are separating those classes in separate .h and .cpp files, there is slightly different syntax right, to access the functions of the class