C++ Programming Tutorial 48 - Fill Array from Input

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

You are the best Chanel for coding on YouTube

danieltribaldos
Автор

Notes about "cin" were very interesting.
Thank you

aminramazanifar
Автор

thankyou caleb so much for your help, i have a slight problem that i work on a different compiler and ther's alot of things i cant understand when i see the same question done in a different compiler than mine due to the small changes in the programming style ... it would be so helpful if you can work on other compilers more, thank you so much.

bushraw
Автор

9:19 There's nothing wrong with getting stuff from stack overflow. There's a very little amount of situations where it would actually be considered cheating.

Markofka
Автор

Instead of the count variable, couldn't you just initialize the index outside of the for loop and use that?

dms
Автор

i have not watched the whole thing yet but can we not have the array size as a user input? like if the user enetered how many was supposed to be in the array and then that would be the array size. Or does the array size always have to be a constant?

mrbrian
Автор

Would this work for doubles or is it just for ints. I have an assignment asking for doubles and I can't figure it out

pacman
Автор

Ohk my question is "how to take elements in array from user" it is possible or not

yunik_developer
Автор

If you don't mind my asking, how in the world do you return an array?

brocklesnarufcchamp
Автор

What is the difference between "cin" and "std::cin" ?

beezle
Автор

When you said you intuitively knew how to do that last part, it sounded a bit like a tall tale. A “stack”, if you will…

PunmasterSTP
Автор

If I had an array outputting integer information based on what's in the array how would I make it so that information is going into another array in the same order of the output? For example, if I had an array int apple[ ] = {2, 3, 5, 8, 1} and a for loop going through the numbers of apple and I had another array int data[ ] = {}; and int datasize = sizeof(data) / sizeof (data[0]); how do I get the data output from apple and have it go into int data without me having to copy and paste that data into data after the program runs. I feel like this is a stupidly simple answer.

crimsonking
Автор

This dude managed to take array input without telling us how exactly did it work...

soffi
Автор

fun fact: if you cin gets a letter and the code puts it in an int stuff wrong

alooyeg
Автор

This look so antiquated. I don't understand why they haven't updated C to just be able to declare and initialize empty arrays with the ability to append data into it. There is so many extra steps happening here. If someone has the time to explain to me how this somehow saves memory or is more efficient than other languages please do so because I just cant even right now.

Hytension