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
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;''
#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
#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
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 CZcams 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;''
The edit at 5:18 was so smooth
string bikes[2];
cout
you can do sizeof(bikes). it returns the length of the array, in this case 3
using namespace std
int main() {
int shoeSize [6] = { 33, 35, 37, 39, 41, 43}
cout shoeSize
Array[ "good job"];
string Brands[] ={Nike, Adidas, Puma, Fila,}
if(Condition ==true)
{
Brands[0] = "Sketchers";
}
Sir zoom out the screen
#include
#include
using namespace std;
int main()
{
string car[]={"toyota, Nissan,isuzu"};
cout
double car[] = {1.99, 4.57, 19.99, 100};
std::cout
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 🤣
#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