C++ arrays (#19) 🚗

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

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

  • @BroCodez
    @BroCodez  4 года назад +14

    // -------------------------- Example 1 --------------------------
    #include
    #include
    #include
    using namespace std;
    int main()
    {
    string cars[] = {"Corvette","Tesla","Ferrari","Audi" };
    for (int i = 0; i < size(cars);i++) {
    cout

  • @DT-mj6ou
    @DT-mj6ou 3 месяца назад

    Bro, your videos are literally helping me with my c++ class. No programming jargon to confuse me. love it!

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

    Thank you bro. Yor are a hero.

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

    Hey bro. Love these tutorials! 2 Questions about part 2 if you have the time.
    1) Would this work if you used a regular Array instead of a pointer to the address of an Array? Why or why not?
    2) Why don’t you have to dereference the pCars[i]? Without that, why isn’t it just printing the address of that portion of the Array?

  • @shivendra.__
    @shivendra.__ 2 года назад +3

    You r done RUclips algo

  • @muhammadazzam9894
    @muhammadazzam9894 7 месяцев назад

    Great vid 👍👍

  • @YusufMohamed-q9q
    @YusufMohamed-q9q Год назад

    good video

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

    Thanks bro ...plz continue making video on c++..these are very helpful

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

    Best❤

  • @ibunnyyoutube5423
    @ibunnyyoutube5423 6 месяцев назад

    nice

  • @夜神月-l8q
    @夜神月-l8q 2 года назад

    Bro u r my hero ☺️

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

    like it

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

    Bless

  • @SAEID-n4r
    @SAEID-n4r Год назад

    ❤❤❤❤

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

    Thanks again Bro

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

    cool

  • @worldin-one-minute
    @worldin-one-minute 10 месяцев назад

    thank you brooo!!!!!!🤩

  • @rezakheirabadi9358
    @rezakheirabadi9358 8 месяцев назад

    Thank you

  • @ibrahimarshad7982
    @ibrahimarshad7982 Год назад +1

    Sir size()exact size return krta hai to wo q nhi use kia

  • @whereisdamn22
    @whereisdamn22 8 месяцев назад

    Hey bro, I’m finding it hard to understand the sorting of arrays

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

    Hello in line 13, why didn't you just declare an array without any pointer?
    I'm just curious thank you

  • @sSs-di8nv
    @sSs-di8nv Год назад

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

    Thanks ☺️

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

    hallal

  • @ЭльдарШогенов-э8ч
    @ЭльдарШогенов-э8ч 2 года назад

    string is not unambiguous.
    Can help?

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

    I can't find the size() function

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

      Try this function
      size_t()

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

      make sure to use it in some function, not in empty space

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

      @@kamisama5783 is that a mac thing?

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

      @@birbylikesfox1032 size_t is not a function, its a data type defined in standard c as unsigned int, its what sizeof returns

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

      the size function is contained within the set namespace of the standard namespace, code bro included using namespace std at the top of the file which is generally bad practice, what you should write it as is std::set::size()