background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6"

input logo icon
Video tags
|

Video tags

программирование
курсы программирования
уроки
массивы
циклы
visual studio
web программирование
#SimpleCode
simplecode
simplecode c++
visual studio 2019
visual studio уроки
simplecode c#
программирование для начинающих
учим си шарп
учим c# с нуля
c# уроки с заданиями
уроки c# для начинающих
ввод массива с клавиатуры
ввод массива с консоли c#
заполнить массив с клавиатуры c#
домашние задания по c#
си шарп уроки
основы программирования
как стать программистом
сишарп
урокипрограммирования
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:01
we continue to study the
00:00:03
C sharp programming language, today we
00:00:05
will do one of those homework assignments
00:00:07
that I gave you in the last lesson about
00:00:08
arrays
00:00:09
and we will actually do the
00:00:12
implementation of the logic of filling an array from the
00:00:14
keyboard, do not forget to subscribe to the channel and
00:00:16
press the bell so you don't
00:00:18
miss new videos, and let's get down to
00:00:21
business, now in front of you you will see the code from the
00:00:23
last lesson, a piece of this year, we will
00:00:25
leave it, we will use it, but it
00:00:27
will be a piece that will simply
00:00:28
output our array to the console, and like this
00:00:31
so that we can track
00:00:34
have we filled our array correctly
00:00:36
but before that we still need to write a lot of things
00:00:37
in 24 lines of code I added
00:00:40
output to the console of the phrase array output
00:00:43
we will need this so that in the console
00:00:45
after we have a bunch of all sorts of
00:00:47
operations before outputting the array we saw where
00:00:49
our own
00:00:51
operations ended where the output of the array began
00:00:53
let's say this is such service
00:00:54
information but now actually
00:00:56
filling the array in general before
00:00:59
filling the array we need to create this array
00:01:01
accordingly in order to
00:01:04
create it we need to know how many
00:01:05
elements in this array will be in principle
00:01:08
we can somehow for hardcore
00:01:10
we set the number of elements in the array to
00:01:12
about 10 and we will always have 10
00:01:15
elements of the array we will fill,
00:01:17
but I want to make it so that we ourselves
00:01:19
enter the keyboard how many
00:01:21
elements in our Russia will we have to
00:01:23
fill in order
00:01:24
for a person those who launched our
00:01:26
program generally understood what they wanted from him
00:01:28
and, in principle, so that everything would be
00:01:30
beautiful for us, we will respectively request each action that we will
00:01:32
require
00:01:33
in the console, the first thing we
00:01:36
will do is we will request the number of
00:01:38
elements of
00:01:39
our array, please note I
00:01:42
use the console wright method they are red
00:01:45
line so that we do not have a
00:01:46
transition to the next line, and
00:01:49
actually here the phrase you see, enter the
00:01:51
number of elements of our array and
00:01:52
then we will use
00:01:54
tab indentation so that everything is beautiful for us,
00:01:57
just wait, we have prohibited the number of
00:01:59
elements for our array we need
00:02:02
enter these elements so for this purpose
00:02:04
we will create a variable
00:02:06
ska und and actually here we will
00:02:09
receive data about the number of elements in
00:02:12
our array and after we
00:02:15
receive the data in this variable we can
00:02:17
here when creating the array these are the
00:02:20
square brackets where we indicate
00:02:22
the number of elements in this array,
00:02:23
in fact, place our
00:02:25
Evans Count variable, so we will create an
00:02:27
array of as many elements as
00:02:30
we enter in the console. By the way, let’s run it
00:02:32
and see what we get here,
00:02:34
so here are the requests for the number of
00:02:36
elements in our array, let’s
00:02:38
enter 5 here, as you can see, here we are don’t
00:02:40
go to the next line of code
00:02:41
so that right here in the same
00:02:44
line we have a tab that contains the number that
00:02:46
we enter as meters for our
00:02:48
array from the tab that everything was
00:02:50
carefully press enter we see that
00:02:53
the array is created with 5 elements, then
00:02:55
we have the actual output of this array
00:02:58
there is now 0, these are the default values ​​for
00:03:00
in the if we run and create an array for
00:03:04
some other number of elements,
00:03:06
for example 12, we will have more
00:03:08
elements, respectively, we can already
00:03:11
create an array, well for what now we
00:03:14
need to somehow implement in
00:03:16
water cops into our array that we are
00:03:17
creating, by the way, before we
00:03:21
get down to this, I want to draw your attention
00:03:22
to another point, we
00:03:25
lack some kind of validation here,
00:03:27
for example, if we enter a negative
00:03:31
number, we will get an exception because we
00:03:34
cannot create an array for a negative
00:03:36
the number of elements to or if we
00:03:38
enter some kind of large number and
00:03:41
int, in principle, cannot store the value of
00:03:44
such a range,
00:03:47
so if we look at whether int mcfly is
00:03:50
such a number,
00:03:53
we won’t write validation of these things at the moment,
00:03:54
this is not the topic of this lesson,
00:03:56
but in principle in real large
00:03:57
projects such things are usually in the lead
00:03:59
by adding additional checks for
00:04:01
exception handling, but the like,
00:04:04
then we need to organize each
00:04:07
element of our array, we can
00:04:09
easily do this using a loop, in fact,
00:04:13
here we already have an array created for
00:04:15
this the number of elements as we indicate,
00:04:18
we need to iterate through all the elements of this
00:04:21
array, access each element of
00:04:23
this array and, accordingly, read the
00:04:26
data from the console, it will call for the same thing
00:04:29
that we did here once,
00:04:32
count the number from the console once parcel and
00:04:34
we will do it at each iteration of the
00:04:36
loop and place each such element in the
00:04:39
corresponding Yandex, it is mass,
00:04:41
but before doing this on them, it would be a
00:04:44
good idea to sign that we have a common
00:04:46
date with this, the program will simply open here, the
00:04:47
cursor will blink, so
00:04:50
every iteration of this cycle before
00:04:52
we have an input request
00:04:54
element of the array, we will display
00:04:56
a message
00:04:57
see the element of the array and actually
00:04:59
indicate the index of
00:05:01
this element in the array, we know the index
00:05:04
due to the fact that the nose is executed in the loop
00:05:06
and 100 is this variable oh
00:05:09
by the index of which we will write to the
00:05:11
array, we will have an index for the array, in
00:05:13
principle it is logical accordingly,
00:05:15
the value of this variable and we will
00:05:17
output each iteration of the loop and write
00:05:19
that you will now write the number exactly
00:05:21
in the array under such an index there, and this is
00:05:24
understandable, let’s run it and see what
00:05:27
we got, so our programs
00:05:30
ask you to enter the number of elements, we
00:05:31
force let’s say a little 5 let it be and
00:05:34
actually asks to enter an
00:05:36
element of the array under index 0, let's
00:05:39
write the count very simply, just some
00:05:43
random numbers,
00:05:45
actually wait, as we entered all these numbers
00:05:47
under the corresponding
00:05:49
indices, we are outputting
00:05:53
the array, but we also get the same
00:05:55
numbers that we entered, respectively, we
00:05:57
can to see that in the array there are
00:05:58
exactly the numbers that we wanted,
00:06:00
the only thing I don’t like is
00:06:02
that we have all these records here, they
00:06:04
somehow stuck to each other too much, let’s
00:06:06
say it’s not very convenient to read, and
00:06:09
therefore we will correct this matter
00:06:11
thanks to the attack design god slash n
00:06:13
it moves to the next
00:06:15
line if we write this box
00:06:17
in front of the text that is shown on the
00:06:19
console before this it will move to the
00:06:21
next line how these
00:06:24
records will be divided among
00:06:26
ourselves then we will enter the number of elements of the
00:06:29
array, well, let's go here 9 we
00:06:30
keep elements, as you can see, now we have each
00:06:34
entry just further away from each other
00:06:36
and so readability when
00:06:40
the tone increases, so we kept the elements of
00:06:42
our array and here are mine, I remind you
00:06:45
that the source code of this lesson will be
00:06:46
available for patrons of the channel with access to the
00:06:48
source code on Patreon, and so on
00:06:51
actually that's all we have done our
00:06:52
homework our program is working we
00:06:54
can fill out the array from the keyboard if
00:06:56
you liked this lesson it was
00:06:58
useful and interesting for you do not forget
00:06:59
to put a person under this video if
00:07:01
you want to support me channel
00:07:03
financial information there
00:07:04
you will find how to do it below in the description I will be
00:07:07
glad if you share this lesson with
00:07:09
your friends who are studying
00:07:10
programming, of course, if you have
00:07:12
not subscribed yet, be sure
00:07:14
to subscribe. There are already here and there will be
00:07:16
many more useful lessons for you,
00:07:18
thank you all for your attention bye

Description:

В этом уроке мы продолжим изучать массивы и циклы в языке программирование C# и выполним домашнее задание из одного из прошлых уроков. Займёмся реализацией ввода элементов массива с консоли и соответственно заполним наш массив данными с клавиатуры. При этом наша реализация будет предусматривать самостоятельное указание размера массива с консоли. ✅ИСХОДНЫЙ КОД УРОКА https://www.patreon.com/posts/iskhodnyi-kod-k-31992254 ✅Если вам нравятся мои уроки, вы хотите поддержать меня и развитие канала, то можете сделать это тут!=) ✅Доступ к исходному коду и спонсорство https://www.patreon.com/SimpleCode ✅ https://new.donatepay.ru/@SimpleCode ✅BTC кошелек: 12oYfJnvt76wjJbpvfhM41m6KPz6uz4LD4 ✅ Telegram канал https://t.me/SergeySimpleCode Уроки по программированию ✅Наша группа ВК https://vk.com/smplcode ✅Подписывайтесь на канал https://www.youtube.com/channel/UCtLKO1Cb2GVNrbU7Fi0pM0w

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "ЗАПОЛНИТЬ МАССИВ С КЛАВИАТУРЫ | ВВОД МАССИВА С КОНСОЛИ C# | СИ ШАРП УРОКИ | ДОМАШНИЕ ЗАДАНИЯ # 6"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.