C++ FUNCTIONS (2025) - What are functions? PROGRAMMING TUTORIAL

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 145

  • @CodeBeauty
    @CodeBeauty  3 роки тому +23

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

  • @deepaksai3637
    @deepaksai3637 4 роки тому +28

    one has to understand functions after watching this because its a well defined teaching and you made it look so simply and easy...........

  • @Prizmadelik
    @Prizmadelik Рік тому +4

    I just started attending college for my Computer Science degree. You are by far the best go to instructor whenever I need further explanations on a topic I am having a hard time to understand. Thank you!!!!

  • @SpinSilver
    @SpinSilver 6 місяців тому +5

    You're a life-saver! I'm currently going to college at FullSail University and so far the instructors are not very in-depth. I'm learning more from you than this college I'm spending 40+ grand at for a degree lol.

  • @zulhisyamnaqib208
    @zulhisyamnaqib208 3 роки тому +4

    i spend like 2 hours watching my lecture but still got nothing, but your video really help me understanding this topic.... thanks a lot!!!

  • @CodeBytes_Official
    @CodeBytes_Official Рік тому +3

    Mam, I'm from south INDIA and I've watched several videos on this topic and also including my college lecturers, It never made me understand anything! Your 15 mins video has really helped me.. ❤

  • @Hirusan
    @Hirusan 3 роки тому +4

    I used to program in gwbasic and Pascal years ago but I forgot a lot of the fundamentals. Your videos are bringing them back to me. Thank you so much. I’m now planning to write a game.

  • @monoman4083
    @monoman4083 4 роки тому +7

    This is what i need. Nice clear explanations in good style.

  • @clarrisac750
    @clarrisac750 4 роки тому +16

    New playlist by CodeBeauty to be added into my watch list. Love your explanation!

    • @CodeBeauty
      @CodeBeauty  4 роки тому +7

      You are so lovely. Glad to see that you are regularly visiting my channel! 😊

  • @jongofett2343
    @jongofett2343 Рік тому

    I love your voice that you can just clearly speak and make it easy to understand compared to some other tutorials

  • @HAHAAAHAHAHAH94
    @HAHAAAHAHAHAH94 9 місяців тому +1

    I have always been struggling making and learning about codes when I was in the 7th grade, after watching your vids I now understand coding, thank you

    • @CodeBeauty
      @CodeBeauty  8 місяців тому

      I'm happy to hear that my videos are helpful to you 🥰

  • @JarekAtWork
    @JarekAtWork Рік тому

    11:15 I like your enthusiasm when little things start to work.

  • @deepaksai3637
    @deepaksai3637 4 роки тому

    You are explaining everything in detail and why are you not famous, you know i came here from that c++ crash course but trust me your channel videos are in much detail than the crash course ,may be i am lucky that i found your channel for learning

  • @vk2ig
    @vk2ig 4 роки тому +7

    Great video series, thanks! I finished your "C++ For Beginners" series last night, and am now embarking on functions. Interesting how C++ needs a forward definition - some other languages needed that, but C# for example doesn't. It's things like this which I need to know in order not to be pulling my hair out when I start writing in C++. :D

  • @brookhaile6862
    @brookhaile6862 2 роки тому +6

    Greetings from Maryland, USA. I came across your playlists on UA-cam just recently. I really loved them! The way you explained and break things down are so easy and coherent . I like your analogies the way you explain for us to understand the concepts in programming. Your UA-cam playlists will be one of my resource to understand C++ subject matter. My question will be, since I am on runway to dive in IT world from zero experience, I want to know what would be the day to day sedentary life? How do you manage being sitting Infront of computers for a long time in a day? Because my current job requires me to walk and move around everyday( which is more preferable for our over all health ). What kind of ergonomically built chairs , computers, keyboards I should consider? What would like to be programmer /coder in regards to office engagements , continuous meetings and etc?
    Thank you very much in advance

  • @andregrobler4393
    @andregrobler4393 2 роки тому +2

    Fantastic explanation keeping explanations simple and concise, yet easy to understand. Excellent Saldina!

    • @day4834
      @day4834 2 роки тому

      Hi Andre, the only thing that comes to my mind is that you might have used return in your main function:
      int main() {
      cout

  • @twosislm
    @twosislm 6 місяців тому +2

    This is literally what i was looking for ! Thank u so much 😭💗

  • @abdulnawaz2272
    @abdulnawaz2272 Рік тому +1

    Specify and your smile that was so amazing........Nice explanation.

  • @ahmed17476
    @ahmed17476 2 роки тому +1

    thank you i spend four hours yesterday writing some code for skl n it didn't work i didn't know why until i watched ur vid turns out i left the words void before calling back my functions inside main, i want you to know that i greatly appreciate you .
    have a wonderful day

  • @pankajjhaatihar
    @pankajjhaatihar 3 роки тому +3

    Good explanation with examples without skipped steps, this cannot be done by any UA-camr expect you.
    Awesome video
    Please make a video on How to make Zombie Shooting game using C++

  • @davidberry8511
    @davidberry8511 3 роки тому +3

    Thanks for your brilliant tutorials. I am 62 years young and leraning to code and your channel is helping big time. My question is...
    When I copy your code and use "void main() {}" I get a compiler error showing I need to use "int void" why is this?

  • @florence8290
    @florence8290 Рік тому +1

    i wish u were my teacher in college, wow great explanation skills

  • @tjsmail1
    @tjsmail1 4 роки тому +5

    I've watched quite a few of your videos on C++ now and they are great. I also see you are on visual studio 2019 while doing so. You seem to buzz around that editor like crazy. Any chance you would do a video on shortcuts and things of that nature on the visual studio code? Thanks.

  • @dandon.3667
    @dandon.3667 Рік тому +1

    These videos are so useful🫂💙 Thank you so much.

  • @itikanika8718
    @itikanika8718 3 роки тому

    Thank you so much! Finally I know what function is and how make one.

  • @ingridgausin4140
    @ingridgausin4140 3 роки тому +2

    This helps me a lot, Thanks!

  • @TechTalksMedia
    @TechTalksMedia 11 місяців тому +9

    My anxiety after seeing the light mode 📈📈📈

  • @teores8312
    @teores8312 4 роки тому +3

    So clear, so simple. Thx and big ++ from me ;)

  • @tumusiimebrian3745
    @tumusiimebrian3745 4 роки тому +2

    Thanks for the explanation Saldina🙏

  • @karansh491
    @karansh491 4 роки тому +4

    This is the channel that i needed.
    Upload more videos!
    Great videos.
    And ma'am please also cover some advanced topics like templates and working with own heade files.
    I'm reaaly waiting for that videos to come.
    Thankyou 👨‍💼
    Love from India!

    • @CodeBeauty
      @CodeBeauty  4 роки тому +1

      Thanks! Much love for India! 🇮🇳

  • @lexicon8636
    @lexicon8636 4 роки тому

    Thank you so much for this C++ tutorial. Your vids are awesome

  • @fatememaroofkhani7369
    @fatememaroofkhani7369 3 роки тому

    Thank you for your clear explanation. YOU are awesome programmer

  • @shakoorgilal4231
    @shakoorgilal4231 Рік тому +1

    The best tutorial...

  • @Jxkshshxcc
    @Jxkshshxcc Рік тому

    i swear to you Madame that i have a teacher in 2 lessons he did not make me understand functions like you did n 15 minutes thank you so much ♥

  • @ranapour
    @ranapour Рік тому

    Great video series, many thanks!

  • @russellburdette7003
    @russellburdette7003 4 роки тому +1

    Thanks for your videos!! I have learned a lot from you

  • @JohnDoe-fn1me
    @JohnDoe-fn1me 4 роки тому +2

    Another great video 👏

  • @davidkwesiampomah-yeboah2214
    @davidkwesiampomah-yeboah2214 2 роки тому

    Thanks, you've really made life easy for me 😩

  • @ahmetyavuz769
    @ahmetyavuz769 8 місяців тому +1

    thank you Dear Saldina😊

  • @200276644
    @200276644 3 роки тому +1

    Great explanation!

  • @yaqootnawab4590
    @yaqootnawab4590 2 роки тому +1

    i really want to learn more
    love ur concepts

  • @knight1w977
    @knight1w977 2 роки тому

    main function is invoked by default instead of function? (4:52) time

  • @harshbardhanon4901
    @harshbardhanon4901 3 роки тому +1

    NICE EXPLANATION .

  • @programmingwithsarah409
    @programmingwithsarah409 4 роки тому +1

    Simply awesome !! Do you write your script for your videos ?or just outline your video ?

  • @al-meezanacademy4722
    @al-meezanacademy4722 3 роки тому

    Video is very useful and simply.
    And as usual looking gorgeous

  • @HaVocHarMony
    @HaVocHarMony 4 роки тому +2

    You’re awesome!!! Idk why I’m having the hardest time with functions, parameters and arrays, 2d arrays 😭😭😭 and on top of that combining them 😣

    • @Enscriptiv
      @Enscriptiv 3 роки тому

      dude, me too.

    • @HaVocHarMony
      @HaVocHarMony 3 роки тому

      @@Enscriptiv it’s the worst. I haven’t gone back to it 😩😭😭😭

  • @tayabfarooq7544
    @tayabfarooq7544 3 роки тому

    Code beauty is really beautiful! Great explanations.

  • @MegaWeixin
    @MegaWeixin Рік тому

    That is great explanation. In my thoughts , to classify function declaration and variable declaration it depends on with or without parantheses extensions , like this ? Sorry for my dummies.

  • @SaadAli-hh4ho
    @SaadAli-hh4ho 4 роки тому +4

    While using void main i'm getting this error:4 11 C:\Users\Saad Ali\Desktop\main.cpp [Error] '::main' must return 'int'
    But its working fine with int main()
    kindly help

    • @CodeBeauty
      @CodeBeauty  4 роки тому +1

      Actualy, in the case of main() it is recommended to use int, so the easiest way to fix the problem that you're having is to use int main().
      Without getting into much detail, you should know that both int and void are return types of a function, and in the case of main() indicate the type of value that your main function is going to return to the operating system.
      void main() indicates that main is not going to return anything, and int main() indicates that it is going to return an integer value.
      In an ideal case scenario, both should work, but sometimes you can get into problems if you are using void main(), as you've already seen, so it is recommended to use int main() ☺️

    • @SaadAli-hh4ho
      @SaadAli-hh4ho 4 роки тому

      @@CodeBeauty thank you☺️ Your work is awesome keep it up.

  • @DavidDomfeh
    @DavidDomfeh Рік тому

    i also love your spectacles

  • @Ali_X20
    @Ali_X20 Рік тому

    you are THE BEST

  • @larsverschoor
    @larsverschoor 2 роки тому +1

    When i try to write cpp code in vscode, and then run the code, i get the error: cannot open source file "crtdbg.h" (dependency of "iostream") how do i solve this?

  • @marktwainn5163
    @marktwainn5163 3 роки тому

    Спасибо! Хороший туториал!

  • @Torstein159
    @Torstein159 Рік тому

    Hi. What does : do in a comparison between 2 variables in a for loop?

  • @hammozeen
    @hammozeen 2 роки тому

    LOL. I love how to say "invoke" the function. It's like you are summoning it

  • @ashrsfsiliman452
    @ashrsfsiliman452 3 роки тому

    Effort deserves thanks

  • @33samogo
    @33samogo 3 роки тому

    You have so many great tutorials, but as a not absolute C++ beginner, I don’t find myself the best at finding tutorials that are suitable for me. I know you always mention what we need to look first before we continue, but it would be very practical if you include the important links in your comment section bellow in each of your tutorial, to make Your_Tutorials_Map more organized and interactive. For example in this case "What are functions?", I would like so see in the comment section where this tutorial is positioned in the "YTM", is it in "Beginners", "Intermediate", "Advanced" section, what is the link of playlist ( the index of tutorial present in the tutorial name would very useful) and recommended or mandatory links that are good to check before this tutorial to, In this way I can easily find the way out to tutorials that I need to learn or review, if I find myself in trouble following you. If it's easier for you, just include one YTM link in comments where we can always find all links to your great tutorials in more organized and interactive way as in the case of your UA-cam Playlist folder. You are great, thank you!

  • @meekareth5092
    @meekareth5092 2 роки тому

    Thank you, subscribed

  • @Alwaysalearner123
    @Alwaysalearner123 Рік тому

    Clarity and concept ++

  • @muhammadrehan2418
    @muhammadrehan2418 4 роки тому

    Really nice content 🤩

  • @ahmadosama2652
    @ahmadosama2652 2 роки тому

    Hi Saldina, Is it possible to recommend a site for us to solve simple problems for beginners?

  • @Gallardo6669
    @Gallardo6669 3 роки тому

    Excellent, thank you madam

  • @Y.S_ComputerAcademy
    @Y.S_ComputerAcademy 2 роки тому

    *To learn about C++ Functions see Tutorial:*
    ua-cam.com/video/o6h2wPqniEo/v-deo.html
    yscomputeracademy.blogspot.com/2022/09/c-functions.html

  • @04s.u
    @04s.u 3 роки тому

    Nice explain 👍🏻

  • @hairuldon6644
    @hairuldon6644 6 місяців тому

    difference with looping tho? fucntions is so that u can use many times wasnt it is the same for looping?

  • @dominiclogue5924
    @dominiclogue5924 3 роки тому

    What's the difference in using /n or endl?

  • @Rohan_salunkhe94
    @Rohan_salunkhe94 2 роки тому

    Thax mam love frome india❤️

  • @joshuakaswahili3279
    @joshuakaswahili3279 2 роки тому

    good lecture👍

  • @khaledvevo603
    @khaledvevo603 10 місяців тому

    Thank You So Much

  • @ROYALNIL_SITE
    @ROYALNIL_SITE Рік тому

    GOOD. thanks 🙂

  • @Esau-d3h
    @Esau-d3h 4 місяці тому +1

    Your tutorial s are really helpfull and i understand reall good just one request please USE DARK..LIGHT MODE WILL ATTRACT BUGS😢😢😢😢😢

    • @CodeBeauty
      @CodeBeauty  3 місяці тому

      i see a potential for developer in you :D

    • @Esau-d3h
      @Esau-d3h 3 місяці тому

      @@CodeBeauty thanks

  • @whiskyyt5220
    @whiskyyt5220 2 роки тому +1

    I got a crush on you 🙈❤️
    i understand your explanations very well
    also got highest marks in my exam after watching your lectures , thanks Alot for your efforts to make dumbs like us understand programming 😄

  • @vidyprasad
    @vidyprasad 3 роки тому

    how to write initwindow function in visual c++ please make the video (output full screen )

  • @boussaidbenyamina6170
    @boussaidbenyamina6170 2 роки тому

    hi great job but the code don't run the compiler ask me to use int function and not void
    any help please

    • @TheRuart123
      @TheRuart123 2 роки тому

      Just change your main function to int main() and add a return 0: before }

  • @Steviecyanide444
    @Steviecyanide444 11 місяців тому

    why does my void function keep giving me an error saying the function has to return an integer

  • @Psychically420
    @Psychically420 2 роки тому

    PLS HELP I keep getting this error message, "Cannot build and debug because the active file is not a C or C++ source file", I ran the same script shown on your screen.

  • @tusharchauhan6764
    @tusharchauhan6764 3 роки тому

    Why don't we have to call main function like others, is it predefined in the header files??

    • @TheRuart123
      @TheRuart123 2 роки тому

      All your programs start with the main function.

  • @ΧρυσοβαλαντηςΤασιοπουλος

    You dont explain the system("pause>0"); what is the function of that statement ?

    • @AW-si5jh
      @AW-si5jh 3 роки тому +1

      This is a late reply, but I believe she mentioned in another video that it is used to get rid of text that is automatically printed in the command prompt window. You can remove it if you want and see the text that is printed. According to my C++ book, if your main isn't void, you can use "return 0;" to get rid of the text as it indicates the program executed successfully. But because her main function is *void*, she cannot use "return 0;" to get rid of the text in the command prompt window when executed.

  • @DavidDomfeh
    @DavidDomfeh Рік тому

    i love you soooooooooooooooooooooo much you are the best

  • @gtoakley6489
    @gtoakley6489 Рік тому

    thanks for making so clear. I have a question- I've been experimenting when watching this video... why is it not reading out the result when I input the elements inside main()
    //-----------------------------------outside main()--------------------------
    int formula (int x, int y, int z)
    {
    int answer;
    answer = (x * y) + z;
    return answer;
    std::cout

  • @vidyprasad
    @vidyprasad 3 роки тому

    how to write initwindow function in visual c++

  • @mohtdips277
    @mohtdips277 4 роки тому

    Thank you, Saldina. I hope for a moment, I meet with you for one picture for the memory only ... because you are really an influential person

  • @xqcfan
    @xqcfan 2 роки тому

    what software are you using to write this code on?

  • @shaikhussaina7687
    @shaikhussaina7687 2 роки тому

    Hi Beauty can u write this 152J5A001 ,numbers and characters both are do write this in cpp

  • @oldhararian
    @oldhararian 2 роки тому

    I love the content but may you please use dark mode

  • @krutimsahanam1052
    @krutimsahanam1052 2 роки тому

    Hello code beauty which ide it is

  • @raysonkoo5823
    @raysonkoo5823 4 роки тому

    whats is mean by line 10

  • @vinaylofi3105
    @vinaylofi3105 2 роки тому

    Make video on strings

  • @muzammaljutt5135
    @muzammaljutt5135 Рік тому

    hello dear i hope you are well !
    one thing i notices that your vedios sound is not clear please use microphone to recorde our voice thank you @codeBeauty

  • @elmeddinhecbalayev9043
    @elmeddinhecbalayev9043 3 роки тому

    what is your IELTS level?

  • @pubguyspubguys2233
    @pubguyspubguys2233 3 роки тому

    thanks a lot

  • @zonaedahmed1819
    @zonaedahmed1819 3 роки тому

    Thank you

  • @kennyeko2801
    @kennyeko2801 2 роки тому

    So guys my teacher said I should write out 50 functions and define each one can you guys help

  • @nourazzam3850
    @nourazzam3850 2 роки тому

    thanks!

  • @isaacgreawond9160
    @isaacgreawond9160 Рік тому

    Hi! My name is Isaac, a computer science student from Ghana. I want to be a friend learn more about coding from you. I hope my request will be granted. Nice meeting you.

  • @ismailyousfi3521
    @ismailyousfi3521 2 роки тому

    thenks

  • @subee128
    @subee128 2 роки тому

    Thanks

  • @yarasaleh5315
    @yarasaleh5315 2 роки тому

    Please I need more examples
    help me 🥺💔

  • @amanuelayele-971
    @amanuelayele-971 Рік тому

    Pls do same game using c++..

  • @lifetube2214
    @lifetube2214 3 роки тому +1

    Im not native but got it utterly