Vectors - C++ Tutorial 20

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • 💰 Mentorship to six figure software engineer - calcur.tech/me...
    ⚙️ Backend Engineering Mind Map - calcur.tech/mi...
    💻 System Design Playlist - calcur.tech/sy...
    💯 FREE Courses (100+ hours) - calcur.tech/fr...
    🏆 C++ Mastery Course - [cppmastery.com](cppmastery.com/)
    🐍 Backend Python Course - calcur.tech/ba...
    🥇 Python Mastery Course - calcur.tech/py...
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    ✉️ Newsletter - calcur.tech/ne...
    📸 Instagram - / calebcurry
    🐦 Twitter - / calebcurry
    🔗 LinkedIn - / calebcurry
    ▶️ Subscribe - calcur.tech/sub...
    👨🏻‍🎓 Courses - [www.codebreakt...](www.codebreakt...)
    🅿 Patreon - calcur.tech/pat...
  • Наука та технологія

КОМЕНТАРІ • 21

  • @arteent6785
    @arteent6785 10 місяців тому +24

    3:25 The array assignment is invalid because in this case, foods is a pointer variable that points to the memory location of the base address of the foods array, therefore foods = {"grapes", "carrots", "lemons"}; is an invalid statement. To input these three values into the foods array (string data type), you would have to manually input each index (ie foods[0] = "grapes; foods[1] = "carrots"...)

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

    “Thou shall not assign.” The name of the array only refers to the starting point of the array in memory. Still learning about vectors though, im not sure why thats allowed yet.

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

    If you declare the vector you can also initialize its elements by listing its values in parentheses, before the semicolon.

  • @armajroy
    @armajroy Рік тому +7

    Hi! Can you make a CMake tutorial after C++ tutorial?

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

    So in other words, it’s best to use vectors than arrays?👀

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

      yes

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

      @@purpleunicorn616 What about linked list? Simply more for strings?

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

      @@OhmyJeebuss kind of different things

  • @BenonyGabriel
    @BenonyGabriel 7 місяців тому +2

    Thank you sir, the explanation is very easy to understand. i love it

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

    3:00 my timestamp

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

    thank you

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

    ⭐Get Visual Assist - calcur.tech/vassist
    C++ UA-cam Playlist - calcur.tech/cpp-playlist

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

    Blah blah blah Python king but I learned C++ in college and is picking it up again .... hm. ... after 30 years shxt

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

    Why are you using “using namespace std;”. It’s not good coding practice