Learn C++ With Me #20 - Functions

Поділитися
Вставка
  • Опубліковано 29 чер 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 UA-cam 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

КОМЕНТАРІ • 89

  • @adampoper1475
    @adampoper1475 3 роки тому +53

    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.

  • @zachadolphe3633
    @zachadolphe3633 3 роки тому +7

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

  • @noisnette
    @noisnette 3 роки тому +17

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

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

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

  • @moussakaba2429
    @moussakaba2429 3 роки тому +18

    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!

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

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

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

  • @shourya9998
    @shourya9998 3 роки тому +6

    OOP videos would definetely be appriciated!

  • @Xvihaha
    @Xvihaha 2 місяці тому +1

    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!

  • @itsshahain5954
    @itsshahain5954 3 роки тому +13

    Extremely talented programmer Tim is.

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

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

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

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

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

    Man I love this series

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

    Love your work Tim! 😎👍

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

    Fantastic series, thanks Tim!

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

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

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

    Thanks so much for all these amazing videos.

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

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

  • @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 Місяць тому

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

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

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

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

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

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

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

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

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

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

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

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

    Thank you dear Tim...

  • @Adam-dq4vb
    @Adam-dq4vb Рік тому

    Thank you!

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

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

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

    Love from Tamilnadu❤️❤️

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

    Nice series.

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

    Thanks!

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

    You are great!

  • @Ali_X20
    @Ali_X20 4 місяці тому

    Thanks you are the best

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

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

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

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

  • @RichardBoniphace-bc3wi
    @RichardBoniphace-bc3wi Місяць тому

    you are best ever..

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

    Thanks

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

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

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

  • @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

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

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

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

  • @GS-fl6kb
    @GS-fl6kb 3 роки тому +1

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

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

    C++👍

  • @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

  • @rezahajivand7498
    @rezahajivand7498 9 місяців тому

    Hi . Thanks

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

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

  • @smoothrain
    @smoothrain 3 роки тому +5

    你好👋
    Actually am the first here 😲

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

    Do come with the c++ using oops ❤️

  • @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?

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

    how many hours a day do you work or study?

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

    Love from india

  • @Shadow-lx9rh
    @Shadow-lx9rh 2 роки тому

    Please make videos on OOPS to🙏 .

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

    Please cover the OOP

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

    God damnit Tim, MSI is on right now.

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

    Sir plz teach oops in c++

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

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

  • @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

  • @ItachiUchiha_-ym5uf
    @ItachiUchiha_-ym5uf Рік тому

    What version of C++ are you using?

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

    which font is it?

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

    Hey, which university are you from?

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

    How many programming language you know?

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

    How to return an array (not vector)

  • @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 8 місяців тому

    ❤😂😢😅😊 cover templates

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

    We need oop

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

    Watched whole playlist @1.75x

  • @1OJosh
    @1OJosh 3 роки тому

    First

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

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

    :)

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

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

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

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

  • @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🤬🤬