C++ pointers (#18) 👉

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024

ความคิดเห็น • 26

  • @BroCodez
    @BroCodez  4 ปีที่แล้ว +8

    #include
    #include
    #include
    using namespace std;
    int main()
    {
    // pointers
    // & address-of operator
    // * dereference operator
    string name = "Bro";
    int age = 100;
    string food = "pizza";
    string* pName = &name;
    int* pAge = &age;
    string* pFood = &food;
    cout

  • @sametsahin-eh3qj
    @sametsahin-eh3qj 7 หลายเดือนก่อน

    literally teaches me more than my school did lmao thanks BroCode

  • @baovogia6782
    @baovogia6782 2 ปีที่แล้ว

    love it

  • @girl6994
    @girl6994 4 ปีที่แล้ว +1

    In VS Code we can write int number = 0b11000100,but in GCC we can not write binary . Is that right?

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว

      I believe you may need a gcc extension for binary. I'm not too familiar with gcc yet since I tend to use VS for everything.

  • @paramenide9505
    @paramenide9505 2 ปีที่แล้ว +3

    Bro, I'm a french guy who is learning C++ with your videos. I discovered your videos with the Javascript tutorial. The way you explain things make it so easy to understand and you are funny and it matters for me. In fact, this humor is, for me, your personal style and that's why it's better than most of youtube tutorial in the field of computer science. It brings new skills and it's entertaining. Keep going, that's some great stuff here, Bro

  • @study_with_thor
    @study_with_thor 3 ปีที่แล้ว +1

    Why do we need to know the address ?

  • @pabloosmo
    @pabloosmo 4 ปีที่แล้ว +4

    One week ago this would have been very handy, thank you anyway!

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      darn! What topics do you have coming up btw?

    • @pabloosmo
      @pabloosmo 4 ปีที่แล้ว +2

      @@BroCodez it's the last topic of data structures! We've also got threes in here. But the whole course was around lists and different ways to access using static memory, and now dynamic memory

  • @basilzimba5273
    @basilzimba5273 3 ปีที่แล้ว +1

    Time permitting, would you please piece together a Data Structures and Algorithms in C++ playlist...

  • @girl6994
    @girl6994 4 ปีที่แล้ว +1

    There is a little difference between GCC and VS 2019 with C and C++ grammar. I am a little confuse.

    • @BroCodez
      @BroCodez  4 ปีที่แล้ว +1

      C and C++ are similar, but have different syntax since they are different languages. C++ is an extension of the C programming language.

  • @peacefuldeityspath
    @peacefuldeityspath 3 ปีที่แล้ว +1

    It crashed =(

  • @ThakshinVEVO
    @ThakshinVEVO 4 ปีที่แล้ว

    Thank You so much sir!!! For subscribing to me and I've also done cuz I am very interested in programming,i'm learning python now

  • @martinsbruders5895
    @martinsbruders5895 11 หลายเดือนก่อน

    Hi.is it possible to create a pointer to variable out side of the program in another proces?

  • @girl6994
    @girl6994 4 ปีที่แล้ว

    Some Chinese engineer recommended me don’t learn C and C++ according VS code. They say they hate Microsoft company. And they think Microsoft has made C language a mess. And they recommended me to use GCC to learn C . But I love VS code anyway.

    • @extrem2497
      @extrem2497 3 ปีที่แล้ว +1

      So you do use gcc instead of msvc?

  • @yahyaarfaoui8526
    @yahyaarfaoui8526 5 หลายเดือนก่อน

    Niiicee

  • @SAEID-n4r
    @SAEID-n4r ปีที่แล้ว

    ❤❤❤❤❤

  • @kshau_
    @kshau_ 3 ปีที่แล้ว

    899th view

  • @mudassirnaz1813
    @mudassirnaz1813 3 ปีที่แล้ว

    Thanks bro

  • @paramenide9505
    @paramenide9505 2 ปีที่แล้ว

    #BroIsAwesome

  • @ddeac6705
    @ddeac6705 3 ปีที่แล้ว

    Nice

  • @basilzimba5273
    @basilzimba5273 3 ปีที่แล้ว +1

    Your video tutorials are really good... I love the way you make clear programming concepts.