Learn C++ With Me #15 - Pointers (*)

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 79

  • @andreaspatounis5674
    @andreaspatounis5674 3 роки тому +24

    Wow you are the first person who was able to explain me what pointers do

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

    you are the first guy who did explained me what these things are clearly, damn great job

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

    Wow, thanks for the explanation, first watching the References(&) video, continued to Pointers video, make it very clear, and I found my understanding by watching yours, after watching dozens of pointers videos from other channels. Thanks Tim...

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

    My dumbass has had this explained to me so many times but this actually makes a lot if sense now.

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

    I am in my first year collage in a local collage in india. I have just learned about c few months back in collage and I wondered that what I have learnt was absolutely correct regarding the pointer and usage of pointer in data structures most of my classmates feels like pointers as a mysterious concept and they even feel like it's waste of time learning these shit. They just want to become toppers in semisters!! I don't why there are doing a cs degree with out learning anything about memory management and threading things like this and they even don't know whats the importance of memory management in computer science. I know I am gonna fail in all my exams as usual but I am feeling very satisfied this time with the stuff what I have learnt through internet and the oops concept from your videos they thinks this is also a tuf concept. And the most essential and important skill I learnt from you is the art of designing and strucuturing the code I am very much satisfied with the knowledge I got in this three months

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

    Thanks a lot for explaining!!!!
    Your explanation is great!!

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

    Nice handwriting!

  • @zombiekiller7101
    @zombiekiller7101 3 роки тому +9

    I know only python still I understood it because of the nice explanation 🙃

  • @shinystick241
    @shinystick241 3 роки тому +32

    Hey Tim, Can you make a game development with c++ tutorial series pls🙏🙏🙏

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

      TheCherno
      ChillitomatooNoodle

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

      @@belbaka8711 Yeah but he does'nt cover things like getting input or camera, anyway thanks bro!

    • @AbhishekBM
      @AbhishekBM 3 роки тому +14

      Tim is a python guru, but I don't think he has that much experience with C++

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

      a trick : you can watch series at Flixzone. I've been using them for watching lots of of movies during the lockdown.

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

      @August Coleman Yea, I have been watching on Flixzone for months myself :D

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

    7:17 Why does the output for &x change if he changed the cout statement for y?

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

    * -> value at address
    most simple explanation

  • @adrianorocha-dev
    @adrianorocha-dev 3 роки тому +16

    I remember how mind blown I was when I first learned how to use pointers in C...

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

      I got the concept of pointers but still not sure how that would be helpful! i guess i need to dive deeper! lol i got familar with the concept of class and object oriented programming and I noticed how much I needed it! seems pointers are similar!

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

      @@Didanihaaaa so, 2 years later, how good are you at c++

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

    I read pointers and I had a chill

  • @jackmaloney2755
    @jackmaloney2755 3 роки тому +11

    Probably one of the most important features of C, yet all the textbooks just brush over it

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

    So to put it simply I should say that if you are going to save the value and address of one parameter you have to use a pointer. pointer actually has access to both the address and value of another parameter. (y) You will get the value and address of one parameter into another one in a different location in memory!

  • @oh_1234-q9x
    @oh_1234-q9x 5 місяців тому +1

    Ik I'm a bit late, but I have been watching this whole series and how would I take all this information and make a video game in unreal engine?

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

    Thank you for this very useful video!

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

    Hey, I love your videos, they are a great resource to learn and have taught me a lot!
    Once critique is that you are "using namespace std;", it is considered bad practice because it defeats the purpose of a namespace which is to avoid naming conflicts, and by "using namespace std;" you are essentially bringing back the problems in C that C++ solves.

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

      im not saying here that using using namespace std is good, but i think you guys are exaggerating it a bit here. imo for just thing like small test programs or tutorials i think its fine

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

      @@shahnawazazam It builds bad habits tho

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

      @@shahnawazazam glad you shared your oppinion, however I think he should at least talk about "using namespace std;"

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

      I agree. It's acceptable for test and toy code. So he is okay using. But he should say that it should not be used in a professional setting

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

      Appreciate the feedback guys! I believe I mentioned this in one of the earlier videos in the series. Definitely should have made it more clear, my apologies!

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

    The chances of TIM seeing this is very low, but can you PLEASE make more pygame tutorials, like projectile motion.

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

    Very nice video ! I found the voice crack at 7:23 very funny ;)

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

    Thanks

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

    Thank you so much

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

    Thx a lot for all your work
    Can you go for pygame tutorial but from start to finish level one of beat them all?

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

    After I understood what is a pointer, how to create a pointer and how to play with it, what is/are the utility/ies of it?
    Thank you!

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

    did you go over classes in this series?

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

    Hi Tim, how do you learn new coding information like modules and frameworks? Do you read the documentation?

  • @Adnan-up2bh
    @Adnan-up2bh 3 роки тому

    If you solve a problem related to that topic that would be really helpful for learning purposes. But great explanation though.

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

    Hello, love your videos, but I had a question for you. When you make a pointer of an array, do you still have to leave out the ampersand like you do with arrays? Thank you.

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

    In 11:53 why is it x + i? I thought if you need to get the number of the array, you need to do x[i]?

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

      (x+i) or (i+x) is same as &x[i] or &i[x]...these all are same....u do this because the pointer can hold only address...each tym i increase the pointer points to forwarding location...

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

      @@rahuldeb322 Thx for the explanation

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

      @@mrz3 np👍...keep learning

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

    Can you create a Course on creating a mobile app?

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

    Which writing pad do you use?

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

    next: functions

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

    which font is it?

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

    Hey, novice coder here. whats IDE is he using? it looks so clean haha

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

    Help me with my survey.❤
    What do you guys personally want the features of your device but it is not available yet? Or what you want to bring change in your device?
    I hope this is understandable🙏

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

    Question: I understand how to use pointers but when would you want to use one???

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

      When you want to create something dynamically in runtime. You will use 'new' that returns pointer. That's one case, you can google for more cases where pointers are required!

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

    Cool

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

    These reference and pointer things are pretty confusing to me. I hope they aren't necessary for a majority of the things done in c++. Because I would end up having to really study up on this stuff or whatever. The way I see it is that it points to memory locations of where variables are stored? correct? Maybe I am not understanding. I don't know. I knew I would end up hitting a wall of understanding at some point.

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

      Ya that’s correct! I would recommend watching the video a few times or looking at some other resources because they are actually quite important

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

      @@TechWithTim thanks. I will watch a few more vids of this stuff and yours again. And research it more.

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

      @Peterolen yah. I think in starting to understand it better now. I researched it more and even saw another video. I take it that something like &x means something like "the address of x" and *y means "pointer y".

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

    I understand, and yet I still don't understand lol. I'm in beginning programming, and after chapter 5 of Tony Gaddis I'm lost

  • @Thomas-ob5fe
    @Thomas-ob5fe 3 роки тому +1

    Are you also going to make a video about structs and how2 use the arrow operator -> ???

    • @ok-sv1or
      @ok-sv1or 3 роки тому

      nice idea

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

      Selection operator(->) is used when u create a pointer to a structure or union and then u want access the members the structure.

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

    ❤❤🔥

  • @king-vz7xh
    @king-vz7xh 3 роки тому

    I need a help brother my phone's rotation and gyroscope sensors are not working please help brroi

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

    First

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

    Are you gonna announce the giveaway

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

    Second

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

    Seventh

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

    fourth

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

    fifth

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

    drawing can be improved a bit

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

    tthird