C++ arrays explained 🚗

แชร์
ฝัง

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

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

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

  • @zakmartin7567
    @zakmartin7567 2 ปีที่แล้ว +5

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

  • @FrederikWollert
    @FrederikWollert 3 หลายเดือนก่อน

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

  • @AnimateIt2BauBau
    @AnimateIt2BauBau ปีที่แล้ว

    The edit at 5:18 was so smooth

  • @artemzakharchuk2842
    @artemzakharchuk2842 8 หลายเดือนก่อน +4

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

    • @albertomecanicaslocassergio
      @albertomecanicaslocassergio 6 หลายเดือนก่อน

      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

  • @yahyaarfaoui8526
    @yahyaarfaoui8526 ปีที่แล้ว

    Array[ "good job"];

  • @criminalx7099
    @criminalx7099 2 ปีที่แล้ว +6

    string bikes[2];
    cout

    • @panxel8615
      @panxel8615 6 หลายเดือนก่อน

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

  • @abidaismail8539
    @abidaismail8539 24 วันที่ผ่านมา

    Sir zoom out the screen

  • @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 3 วันที่ผ่านมา +1

      yeah wtf 🤣

  • @tavares._art
    @tavares._art 6 หลายเดือนก่อน

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

  • @wlsedlacek
    @wlsedlacek ปีที่แล้ว

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

  • @parpaperchimp
    @parpaperchimp 4 หลายเดือนก่อน

    #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

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

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

  • @ancientastronauttheorists
    @ancientastronauttheorists ปีที่แล้ว

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