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;''
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
#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
#include
int main()
{
std::string cars[3] = {"Corvette", "Mustang", "Camry"};
std::cout
Heck yes. Keep these updated vids coming pls. My C++ term starts next week :3
I really like your C++ series. Keep it up. Please make more C++ Videos. So, let's defeat the TH-cam algorithm.
someone tells him about using namespace std;
he mentioned in another vid why he doesnt use it but i dont remember
@@theday56 oh okay
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;''
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
The edit at 5:18 was so smooth
1:22 was so good
what’s the difference between a vector and an array
using namespace std
int main() {
int shoeSize [6] = { 33, 35, 37, 39, 41, 43}
cout shoeSize
man my size is not even close to what you entered
@@waafQ3 lol
#include
using namespace std;
int main() {
string names[8] = {"Artem", "Eva", "Yula", "Polina", "Lesha", "Bogdan", "Nikita", " Dima"};
cout
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
Array[ "good job"];
#include
#include
using namespace std;
int main()
{
string car[]={"toyota, Nissan,isuzu"};
cout
Sir zoom out the screen
should put Camaro or challenger instead of Camry
what would happen if you try putting accessing an element out side the array in c++
i.e.(std::cout
uhh that shouldn't even happen ,you are only meant to get a warning that this value doesn't exist
yeah wtf 🤣
string mages[ ] = {"Master", "S-Class", "Mage"};
string Brands[] ={Nike, Adidas, Puma, Fila,}
if(Condition ==true)
{
Brands[0] = "Sketchers";
}
string bikes[2];
cout
you can do sizeof(bikes). it returns the length of the array, in this case 3
Yeah I was going to say that but you already now that
double car[] = {1.99, 4.57, 19.99, 100};
std::cout
string drinks = {"Milkshake,", "Water", "Soda", "Smoothie", "Juice" };
std: : cout
#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
#include
int main()
{
std::string colors[] = {"Red", "Blue", "Yellow", "Pink", "Black", "Gray", "Green"};
std::cout
#include
using namespace std;
int main()
{
double prices[] = {3.40 , 4.33, 22.50};
prices[0] = 30;
cout