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

Download "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя."

input logo icon
Video tags
|

Video tags

программирование
для начинающих
указатели
научиться программированию
уроки
си
visual studio
c++
для новичков
указатели c++
для чайников
курсы программирования
tutorial
pointer
visual studio 2017 уроки
видеоурок
как научится программировать
функции
#simplecode
массивы
указатели в си
c уроки
указатель
урок
курс
на си
видео
тутор
туториал
энжин
engine
язык си
игр
чит
c++ указатели для чего нужны
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:12
good day, friends, today
00:00:17
our topic is pointers and we will talk
00:00:20
to you about the
00:00:22
address operator, dereferencing operator,
00:00:27
pointer and
00:00:29
something like that and what are the benefits of
00:00:35
pointers, let's get started, let's first
00:00:42
define
00:00:44
what a pointer is, a pointer is a
00:00:47
variable that points to the
00:00:52
memory address of Hermione, let's hand over Let's look
00:00:58
at an example
00:01:00
that was clear: we declare such
00:01:05
a variable
00:01:13
and declare a pointer of the same type, that
00:01:17
is, a pointer and they come in different types.
00:01:23
We now, in order to work with the
00:01:28
inter variable, create a pointer, declare a
00:01:35
pointer of the same type, that is, and don’t
00:01:42
forget the asterisk,
00:01:43
that is, without this we have The result is usually a
00:01:47
variable. there is no we write now
00:01:52
we have this is a regular variable of
00:01:55
integer type and if we add
00:01:57
an asterisk it is already a pointer so we display it
00:02:02
on iq, well, let’s enter a simple one at the beginning
00:02:23
and everything works then the
00:02:30
symbol is used so that at
00:02:35
the moment this symbol is used
00:02:37
to declare this pointer point to the
00:02:40
5th, that is, pointer
00:02:43
peter because points in English are a
00:02:46
pointer, but if we took it anyway,
00:02:51
nothing will work, we need to assign
00:02:55
the address to the pointer five,
00:03:01
then we’ll do this and
00:03:13
comment out gray for now, we
00:03:15
got it here like this at the beginning
00:03:19
we declare the
00:03:22
pyramid variable 10 peter and the pointer and this
00:03:28
pointer
00:03:29
the pointer points to these
00:03:34
and here we
00:03:36
enter on the screen using the pointer,
00:03:40
but here we now have such an
00:03:45
interesting thing, or what can we
00:03:48
call it, how do we see us here, not the
00:03:53
values, hey, but like some strange
00:03:56
numbers, this is the storage location in the memory of the
00:04:02
pay variable,
00:04:05
that is, what do we need to do so that
00:04:09
the value of this variable appears, for
00:04:14
this we use the
00:04:16
dereferencing operator this asterisk in
00:04:20
English we enter the reference to filter
00:04:26
on the screen
00:04:27
and everything is fine again such a joke such a
00:04:32
cool thing and look 5 equals
00:04:39
let's say now we have will produce a
00:04:43
program error, say 120, we admit why
00:04:51
the error is because
00:04:54
in order to work directly with the
00:04:57
value of the variable we need to work
00:05:03
with the dereference operator, that is,
00:05:08
an asterisk and do the following
00:05:36
we change snakes ice here the value hey that
00:05:43
is, the pointer points to and and if we
00:05:48
change here or declare like here
00:05:51
shown, in fact, we are
00:05:55
changing the value here and since this Peter
00:05:59
our pointer points here, what
00:06:04
will happen if we do this, let’s do this,
00:06:07
so I’m not five kopecks,
00:06:11
what do you see as we see, first we have a
00:06:20
variable and then Peter and to
00:06:26
we assigned the assignment there we assigned the value there,
00:06:29
well, at least they assigned it points to and it
00:06:32
will be more accurate and then we
00:06:41
haven’t worked with and here,
00:06:45
but for some reason, instead of ei 120,
00:06:50
come up how convenient it is to work with a
00:06:54
pointer, this is a class,
00:06:55
but in the beginning maybe It’s a little confusing
00:06:58
with these declarations
00:07:03
by assigning the value to the
00:07:06
assignment of the address, but with practice everything
00:07:11
will be
00:07:15
clear
00:07:18
now that you can use the
00:07:23
website main points here is the
00:07:29
dereferencing operator here is also the
00:07:36
assignment operator and the rest everything seems
00:07:40
clear now let’s do everything like this if it’s
00:07:48
just a persian
00:07:49
ampersand and we have streets and the address of this variable will be displayed on
00:07:56
the screen the
00:07:57
address of the
00:08:03
cell variables the address of the cell, more precisely where
00:08:06
the variable is stored, that means
00:08:12
without these same assignment and
00:08:18
dereference operators, we had
00:08:22
the compiler give an error,
00:08:28
for example, with a five, the address will appear here
00:08:37
and now the value
00:08:49
is all
00:08:53
now I’ll tell you a few words about the size of
00:08:57
pointers and the size of the pointer depends on the
00:09:02
architecture on which the
00:09:05
executable file is compiled and viewed, and a 32-bit
00:09:11
executable file uses 32-bit
00:09:14
memory addresses and therefore a pointer
00:09:19
on a 32-bit device occupies 32 bits
00:09:23
and four bytes. Let’s use it in the
00:09:28
site command Peter’s pointer name
00:09:46
8
00:09:51
means I have a 64-bit one system
00:09:56
architecture that's all,
00:10:00
and finally, if you are going to
00:10:08
declare several pointers at once,
00:10:10
for example, int letter b
00:10:21
king
00:10:23
57,
00:10:29
this is also an option for
00:10:33
declaring a pointer, but this is a valid
00:10:37
option, but undesirable, so what
00:10:40
happens here is Peter by, we have a
00:10:45
pointer of type int here Peter this is an
00:10:50
ordinary variable for us, not a pointer,
00:10:55
that’s why this option
00:10:58
is allowed, but it’s undesirable if we do it like
00:11:03
this, we have two pointers 5 arbe and
00:11:10
St. Petersburg residents, that’s all for our first lesson about
00:11:20
indicators and thanks for
00:11:24
watching
00:11:25
if you have any suggestions for
00:11:28
about improving the channel here is sonic and
00:11:31
content and you write in the comments it will be
00:11:35
interesting
00:11:38
complaint

Description:

Указатели куда они указывают?))) оператор адреса - address #operator оператор разыменования - #dereference operator

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 "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя." 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 "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя." 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 "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя." 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 "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя." 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 "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя."?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 "Урок_#18. C++. #Указатели. Оператор адреса, оператор разыменования. Размер указателя."?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.