C++ arrays explained 🚗

  Рет қаралды 40,502

Bro Code

Bro Code

Күн бұрын

Пікірлер: 41
@BroCodez
@BroCodez 2 жыл бұрын
#include int main() { std::string cars[3] = {"Corvette", "Mustang", "Camry"}; std::cout
@zakmartin7567
@zakmartin7567 2 жыл бұрын
Heck yes. Keep these updated vids coming pls. My C++ term starts next week :3
@FrederikWollert
@FrederikWollert 9 ай бұрын
I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the KZbin algorithm.
@batknight2241
@batknight2241 2 ай бұрын
mann thanks alot i was having a real hard time understanding arrays, u explained in the most easiest way. i got an exam tomm u a life saver
@AnimateIt2BauBau
@AnimateIt2BauBau Жыл бұрын
The edit at 5:18 was so smooth
@Rashed_16
@Rashed_16 6 ай бұрын
someone tells him about using namespace std;
@theday56
@theday56 5 ай бұрын
he mentioned in another vid why he doesnt use it but i dont remember
@Rashed_16
@Rashed_16 5 ай бұрын
@@theday56 oh okay
@Lokvie
@Lokvie 4 ай бұрын
It might be useful for some projects, but it is a bad practice. It makes the code harder to read for others and also makes it harder for you to write when you have to work on someone elses project, that doesn't use ''namespace std;''
@legendarygamer3960
@legendarygamer3960 5 күн бұрын
He uses std::
@artemzakharchuk2842
@artemzakharchuk2842 Жыл бұрын
#include using namespace std; int main() { string names[8] = {"Artem", "Eva", "Yula", "Polina", "Lesha", "Bogdan", "Nikita", " Dima"}; cout
@albertomecanicaslocassergio
@albertomecanicaslocassergio Жыл бұрын
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
@BioElectricDuck
@BioElectricDuck 2 ай бұрын
1:22 was so good
@tavares._art
@tavares._art Жыл бұрын
using namespace std int main() { int shoeSize [6] = { 33, 35, 37, 39, 41, 43} cout shoeSize
@waafQ3
@waafQ3 2 ай бұрын
man my size is not even close to what you entered
@tavares._art
@tavares._art 2 ай бұрын
@@waafQ3 lol
@jessie.6507
@jessie.6507 29 күн бұрын
what’s the difference between a vector and an array
@masterchief5589
@masterchief5589 7 күн бұрын
An array is static it's size can be set only upon declaration and will never change however, vector is dynamic it's size can change at all times, but it's a little less optimized than an array whether you should use array or an vector depends on the purpose of the variable. If you need a list whose size changes all the time, like let's say students in school but if you don't need to change size, use an array
@Cinarbayramic
@Cinarbayramic 6 күн бұрын
i came here for std::array but whats the difference anyways
@yahyaarfaoui8526
@yahyaarfaoui8526 Жыл бұрын
Array[ "good job"];
@ai-scifn
@ai-scifn 7 ай бұрын
Sir zoom out the screen
@oximas-oe9vf
@oximas-oe9vf 2 жыл бұрын
what would happen if you try putting accessing an element out side the array in c++ i.e.(std::cout
@FlorrioEggGaming
@FlorrioEggGaming Жыл бұрын
uhh that shouldn't even happen ,you are only meant to get a warning that this value doesn't exist
@MindOfT1m
@MindOfT1m 6 ай бұрын
yeah wtf 🤣
@CMT-p6q
@CMT-p6q Ай бұрын
should put Camaro or challenger instead of Camry
@whathuh6965
@whathuh6965 5 ай бұрын
string Brands[] ={Nike, Adidas, Puma, Fila,} if(Condition ==true) { Brands[0] = "Sketchers"; }
@unruly_ronin
@unruly_ronin 2 ай бұрын
string mages[ ] = {"Master", "S-Class", "Mage"};
@wlsedlacek
@wlsedlacek Жыл бұрын
double car[] = {1.99, 4.57, 19.99, 100}; std::cout
@MuzoGonViral
@MuzoGonViral 5 ай бұрын
#include #include using namespace std; int main() { string car[]={"toyota, Nissan,isuzu"}; cout
@criminalx7099
@criminalx7099 2 жыл бұрын
string bikes[2]; cout
@panxel8615
@panxel8615 Жыл бұрын
you can do sizeof(bikes). it returns the length of the array, in this case 3
@jesusmarin6668
@jesusmarin6668 3 ай бұрын
Yeah I was going to say that but you already now that
@estherolayade4723
@estherolayade4723 3 ай бұрын
string drinks = {"Milkshake,", "Water", "Soda", "Smoothie", "Juice" }; std: : cout
@parpaperchimp
@parpaperchimp 11 ай бұрын
#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 Жыл бұрын
#include int main() { std::string colors[] = {"Red", "Blue", "Yellow", "Pink", "Black", "Gray", "Green"}; std::cout
C++ sizeof() operator explained ⚖️
4:55
Bro Code
Рет қаралды 13 М.
C++ multidimensional arrays explained ⬜
7:41
Bro Code
Рет қаралды 18 М.
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
C++ pointers explained easy 👈
5:16
Bro Code
Рет қаралды 64 М.
Creating Your Own Programming Language - Computerphile
21:15
Computerphile
Рет қаралды 215 М.
Learn C++ With Me #9 - Arrays
21:35
Tech With Tim
Рет қаралды 108 М.
C++ user defined functions explained 📞
7:24
Bro Code
Рет қаралды 33 М.
you will never ask about pointers again after watching this video
8:03
Arrays in C++
18:31
The Cherno
Рет қаралды 437 М.
Why Are Threads Needed On Single Core Processors
16:07
Core Dumped
Рет қаралды 229 М.
C++ user defined functions (#15) 📬
17:14
Bro Code
Рет қаралды 39 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,3 МЛН
C++ 2D arrays (#20) ⌨️
11:26
Bro Code
Рет қаралды 12 М.