C++ arrays (#19) 🚗

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

КОМЕНТАРІ • 32

  • @BroCodez
    @BroCodez  4 роки тому +11

    // -------------------------- 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

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

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

    Great vid 👍👍

  • @DagimAbebe_Ethiopia
    @DagimAbebe_Ethiopia 2 місяці тому

    Best❤

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

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

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

    like it

  • @shivendra.__
    @shivendra.__ 2 роки тому +3

    You r done UA-cam algo

  • @rezakheirabadi9358
    @rezakheirabadi9358 5 місяців тому

    Thank you

  • @YusufMohamed-q9q
    @YusufMohamed-q9q 10 місяців тому

    good video

  • @ibunnyyoutube5423
    @ibunnyyoutube5423 2 місяці тому

    nice

  • @夜神月-l8q
    @夜神月-l8q 2 роки тому

    Bro u r my hero ☺️

  • @SAEID-n4r
    @SAEID-n4r Рік тому

    ❤❤❤❤

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

    Bless

  • @sSs-di8nv
    @sSs-di8nv Рік тому

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

    cool

  • @whereisdamn22
    @whereisdamn22 5 місяців тому

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

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

    Thanks again Bro

  • @worldin-one-minute
    @worldin-one-minute 6 місяців тому

    thank you brooo!!!!!!🤩

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

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

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

    Thanks ☺️

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

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

  • @user-oi6hk3nw4g
    @user-oi6hk3nw4g 11 місяців тому

    hallal

  • @user-ve2xf1pk8q
    @user-ve2xf1pk8q 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()