Learn C++ With Me #20 - Functions

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • Welcome back to another C++ tutorial! In this video, we'll be covering functions. Functions are really important to C++ programming and we'll see why it was important to learn all the stuff that we did.
    💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code "techwithtim" algoexpert.io/techwithtim
    🔍 Playlist: • Learn C++ With Me
    ⭐️ Timestamps ⭐️
    00:00 | Introduction
    00:28 | What are Functions?
    02:20 | Creating Functions
    05:21 | Functions Without Parameters
    08:00 | Void Functions
    10:07 | Function Examples
    13:40 | Default Parameters
    16:30 | Weird Function Return Types
    18:43 | Pass By Reference
    24:21 | Pass By Pointer
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    💰 Courses & Merch 💰
    💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
    👕 Merchandise: teespring.com/stores/tech-wit...
    🔗 Social Medias 🔗
    📸 Instagram: / tech_with_tim
    📱 Twitter: / techwithtimm
    ⭐ Discord: / discord
    📝 LinkedIn: / tim-ruscica-82631b179
    🌎 Website: techwithtim.net
    📂 GitHub: github.com/techwithtim
    🔊 Podcast: anchor.fm/tech-with-tim
    🎬 My RUclips Gear 🎬
    🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
    🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
    📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
    🕹 Tripod: amzn.to/3hpSprv
    🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
    🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
    🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
    ☀️ Lights: amzn.to/2ApeiXr
    ⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
    🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
    📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
    📢 Speaker (Beats Pill): amzn.to/2XYc5ef
    🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
    🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
    🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
    💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
    💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
    🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
    🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
    💸 Donations 💸
    💵 One-Time Donations: www.paypal.com/donate?hosted_...
    💰 Patreon: / techwithtim
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    ⭐️ Tags ⭐️
    - C++ Tutorial
    - C++
    - Coding Tutorial
    - Tech With Tim
    - Function
    ⭐️ Hashtags ⭐️
    #TechWithTim #C++Programming

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

  • @adampoper1475
    @adampoper1475 3 года назад +54

    Yes, definitely cover oop at least a little bit. I don't think the series would be complete without it. Overall, great tutorials!

  • @Shadow-lx9rh
    @Shadow-lx9rh 2 года назад +2

    I really want to thank you from the bottom of my heart . All your videos are overloaded with information that is not overwhelming at all since you teach in a simple and clear way 👍 Thank you sooo much once again.

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

    This series is extremely helpful!! I really appreciate the effort Tim has put in making this video!!

  • @noisnette
    @noisnette 3 года назад +18

    Do oop, but cover private and public fields as well. After that video you could also do inheritance. Much love

  • @Xvihaha
    @Xvihaha 3 месяца назад +2

    hey techwithtim, you're probably not going to see this but this series has helped alot as a 14yo trying to learn how to code. thank you for everything and i hope i will one day be as good as you!

  • @zachadolphe3633
    @zachadolphe3633 3 года назад +8

    This series would feel incomplete if OOP is not covered because c++ is built on those principles. Great tutorials so far!

  • @moussakaba2429
    @moussakaba2429 3 года назад +19

    Excellent content as always. You're definitely one my favorite instructor.
    Please, some OOP videos in C++ will be greatly appreciated. Thanks again.

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

    Thanks for this series, Tim! It was super helpful!

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

    Amazing content Tim! Love every bit of it. Yes, I would like it if you gave us more examples of functions. Thank you very much!

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

    Thank you so much for these series Tim! Consider making a C++ project series.

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

    Love your work Tim! 😎👍

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

    Great Series, Tim! Thank you so much!
    Do make another complete series on OOPS please..

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

    Fantastic series, thanks Tim!

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

    OOP videos would definetely be appriciated!

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

    Wow, such great tutorial...thanks for the effort put into this.

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

    Man I love this series

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

    Thanks so much for all these amazing videos.

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

    Do more of c++ videos, it's very helpful!

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

    That's a great video for beginners to learn & understand, thanks for sharing !+👍

  • @itsshahain5954
    @itsshahain5954 3 года назад +13

    Extremely talented programmer Tim is.

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

    basic oop would be amazing :D love ur videos dude keep up the great work

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

    great tutorial series,this is my second programming languge im learing,litteraly teached me alot,but i feel like u should do viedo about classes.

  • @syedasifhussain2074
    @syedasifhussain2074 2 месяца назад

    I seriously wanna thank you 😭😭😭
    Thanks to you I have understood alot of stuff

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

    OOP IN C++ BIG DAWG !!!!
    YOU THE MAN FOR REAL!

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

    I'm glad that I got to learn being a techie myself

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

    Thanks Tim. Your videos are very helpfull. We are waiting for OOP ...

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

    Hey, Tim! Quality tutorial as always
    I was genuinely just wondering, do you have a/multiple video editors? Just curious.

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

    Thank you dear Tim...

  • @Adam-dq4vb
    @Adam-dq4vb Год назад

    Thank you!

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

    Love from Tamilnadu❤️❤️

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

    You are great!

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

    Nice series.

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

    Thanks you are the best

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

    Thanks!

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

    Classes video, please. Modules, too. More OOP in general. Maybe a small OOP project?

  • @RichardBoniphace-bc3wi
    @RichardBoniphace-bc3wi 2 месяца назад

    you are best ever..

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

    Thanks

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

    Do an oop app that implements OpenGL (maybe a particle simulation or smth like that).

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

    been following these because I have lied on my resume thank you Tim

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

    @ 23:33 Shouldn't it be,
    void swap(int *x, int *y) {
    x = y;
    y = x;
    }
    if passing by reference? Asterisk, and not the Ampersand?

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

    Could you make a tutorial about streams and reading and writing files in C++?

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

    Hi . Thanks

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

    C++👍

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

    A suggestion: Cmake, header files, templates, structures, and linking libraries with cmake

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

    Tim, can you please make a quick DEPLOYMENT TUTORIAL for django? It has been 2 years and you've said to get on you to make the video!

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

    你好👋
    Actually am the first here 😲

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

    Hey, I love the Vids! Can you add Linked List by any chance?

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

    I'd like to see some more. Go ahead. Show us some object oriented programming.

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

    Hi Tim, can you make a video on locale module in python

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

    Love from india

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

    Not to be harsh or anything, but why were the return types in the "Weird Function Return Types" emphasized as 'Weird'? My only concern is that beginners may see this differently from usual return types like ints and void. Nontheless, I love this series, I would love to see Object Oriented Programming in C++, and I wish this series would continue. Something that you missed with functions is function overloading and operator overloading - there is still a lot to cover.

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

      aren't function and operator overloading a part of OOP? polymorphism

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

      @@mastershooter64 yes, they are

  • @samuelotaru9858
    @samuelotaru9858 29 дней назад

    Pls sir what ide do you use for coding

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

    Do come with the c++ using oops ❤️

  • @berndv.1097
    @berndv.1097 3 года назад +1

    hey cool videos! can you show how structs work in c++?

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

      If you know how classes work, structs work the exact same way
      The only actual difference is all the attributes and methods are public by default for structs but private by default for classes

  • @GS-fl6kb
    @GS-fl6kb 3 года назад +1

    Hey bro.. Can we know which site you are using to learn these

  • @ItachiUchiha_-ym5uf
    @ItachiUchiha_-ym5uf Год назад

    What version of C++ are you using?

  • @Shadow-lx9rh
    @Shadow-lx9rh 2 года назад

    Please make videos on OOPS to🙏 .

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

    I have difficult working with templates especially Class templates. Please, make a video about template

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

    Sir plz teach oops in c++

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

    Please cover the OOP

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

    how many hours a day do you work or study?

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

    God damnit Tim, MSI is on right now.

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

    which font is it?

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

    How to return an array (not vector)

  • @cyberspyking3306
    @cyberspyking3306 21 день назад

    What next please, after learning all this I don't know what to do or how to put it to practice

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

    How many programming language you know?

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

    Hey, which university are you from?

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

    You should have said in the video that you can't do this:
    int *func() {
    int a;
    return &a;
    }
    This is the most error causing thing in C/C++ while learning, even if you don't explain why, just say that it can't be done. It will help thousands of people.

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

      you can do that, it will invoke undefined behavior tho

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

    Watched whole playlist @1.75x

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

    header files? next?

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

    Crea un videojuego con c++ en un directo primero de estar ahi saludos de Sudamérica

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

    ❤😂😢😅😊 cover templates

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

    We need oop

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

    66,746 Recruits
    9,985 Survivors
    As per the time of this comment

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

    :)

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

    What is a function?
    Simply put, " a function is a program to automate tasks".
    How about this?

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

    Hi Tim, I am 10 years old from India, I am fluent in HTML, CSS, JS, and Python, so I wanted to start a youtube channel but I was worried that if I want to get admitted to some college like MIT or Harvard then the people might think that I will not be able to focus because I have a youtube channel. Please tell me will it be a problem for me to get admitted to an Engineering college if I have a youtube channel, Congrats on 645k!

  • @1OJosh
    @1OJosh 3 года назад

    First

  • @user-ft6zh8ny9i
    @user-ft6zh8ny9i 3 года назад +1

    You teach a language that don't even understand. Do you know that {} in c++ in some cases is 0(zero)? Hahaha . You can go and learn a bit Mr. Teacher. hahaha

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

      Look at the name of the series!

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

      Fu*k of from here, just don't insult this great person like this, he is doing everything for free...if u want to learn something, learn and go, I am pretty much sure that Tim knows a lot greater than u🤬🤬