C++ arrays explained 🚗

Поделиться
HTML-код
  • Опубликовано: 18 май 2024
  • C++ arrays tutorial example explained
    #arrays
  • НаукаНаука

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

  • @BroCodez
    @BroCodez  2 года назад +10

    #include
    int main()
    {
    std::string cars[3] = {"Corvette", "Mustang", "Camry"};
    std::cout

  • @zakmartin7567
    @zakmartin7567 2 года назад +6

    Heck yes. Keep these updated vids coming pls. My C++ term starts next week :3

  • @FrederikWollert
    @FrederikWollert 3 месяца назад +1

    I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the RUclips algorithm.

  • @artemzakharchuk2842
    @artemzakharchuk2842 9 месяцев назад +6

    #include
    using namespace std;
    int main() {
    string names[8] = {"Artem", "Eva", "Yula", "Polina", "Lesha", "Bogdan", "Nikita", " Dima"};
    cout

    • @albertomecanicaslocassergio
      @albertomecanicaslocassergio 7 месяцев назад +1

      It's a good start, but you can reduce the amount of lines doing:
      #include
      using namespace std;
      int main() {
      string names[] = {"Artem", "Eva", "Yula", "Polina", "Lesha", "Bogdan", "Nikita", "Dima"};
      for(std::string name : names){
      cout

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

    The edit at 5:18 was so smooth

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

    Array[ "good job"];

  • @criminalx7099
    @criminalx7099 2 года назад +6

    string bikes[2];
    cout

    • @panxel8615
      @panxel8615 7 месяцев назад +1

      you can do sizeof(bikes). it returns the length of the array, in this case 3

  • @Rashed_16
    @Rashed_16 18 дней назад +4

    someone tells him about using namespace std;

    • @theday56
      @theday56 3 дня назад

      he mentioned in another vid why he doesnt use it but i dont remember

    • @Rashed_16
      @Rashed_16 3 дня назад

      @@theday56 oh okay

  • @tavares._art
    @tavares._art 7 месяцев назад

    using namespace std
    int main() {
    int shoeSize [6] = { 33, 35, 37, 39, 41, 43}
    cout shoeSize

  • @oximas-oe9vf
    @oximas-oe9vf Год назад

    what would happen if you try putting accessing an element out side the array in c++
    i.e.(std::cout

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

      uhh that shouldn't even happen ,you are only meant to get a warning that this value doesn't exist

    • @MindOfT1m
      @MindOfT1m 23 дня назад +1

      yeah wtf 🤣

  • @abidaismail8539
    @abidaismail8539 Месяц назад

    Sir zoom out the screen

  • @MuzoGonViral
    @MuzoGonViral 6 дней назад

    #include
    #include
    using namespace std;
    int main()
    {
    string car[]={"toyota, Nissan,isuzu"};
    cout

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

    double car[] = {1.99, 4.57, 19.99, 100};
    std::cout

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

    #include
    int main (){
    int pizza = 1;
    int neutral = 2;
    int choise;
    Std::string neutralmenu[]= {“meat”, “pasta”,”bread”}
    pizzamenu[]={“margherita”,”marinara”,”capricciosa”};
    std::string
    std::cout

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

    #include
    using namespace std;
    int main()
    {
    double prices[] = {3.40 , 4.33, 22.50};
    prices[0] = 30;
    cout

  • @matheus1766
    @matheus1766 Год назад +2

    #include
    int main()
    {
    std::string colors[] = {"Red", "Blue", "Yellow", "Pink", "Black", "Gray", "Green"};
    std::cout