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

Download "Логические выражения в C/С++"

input logo icon
Video tags
|

Video tags

С++
программирование
программирование для начинающих
программирование с нуля
уроки программирования
visual studio
язык С
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:03
can take the value true and walls
00:00:05
or folsworth that is, having a tibul in the
00:00:08
first place such a result gives the
00:00:10
comparison operation is
00:00:12
familiar its less more and less than or
00:00:16
equal more or equal pay
00:00:18
attention to how these signs are written in the
00:00:21
first place is greater or less is
00:00:23
equal always on the second and there
00:00:26
should not be a space between them,
00:00:28
checking for equality is two
00:00:30
equal signs, I think it’s clear why because
00:00:33
one equal sign is an
00:00:35
assignment operator, but if you need to check whether it’s
00:00:38
equal or not, then these are two equal signs, don’t
00:00:40
confuse them,
00:00:42
it’s not equal! equals and examples of
00:00:48
these operations are shown here, the results of these
00:00:52
operations 3 is not equal to 6 this is true 3 is equal to 6
00:00:57
this is a fall but and so on,
00:00:59
but sometimes we do not have
00:01:02
enough comparison operations, we
00:01:04
need to create a more complex condition and
00:01:07
then logical operations come to the rescue,
00:01:09
we will look at three this is
00:01:12
logical and or and is not
00:01:16
logical and gives the result true if
00:01:19
both operands are true, that is, both
00:01:22
logical operations are usually described
00:01:25
using a truth table that
00:01:28
shows all possible values ​​of the first
00:01:30
operand, all possible values ​​2 and
00:01:33
the result, if you look at the
00:01:36
truth table for and then we see that there
00:01:39
will be a corpse only if
00:01:41
both a is true and a bad room, that is, this is also another
00:01:44
truth, and with the help of this operation it is easy
00:01:48
to write this condition for the number x
00:01:50
to be in the range from 0 to 10.
00:01:53
Write this down as we are
00:01:55
accustomed to in mathematics. in the form of a
00:01:59
double inequality will be incorrect in C
00:02:01
language you need to write 2 separate
00:02:03
conditions x is greater than or equal to 0 and x is less than
00:02:07
or equal to 10 and combine them using the
00:02:10
operation logical and
00:02:13
Boolean or this two sticks gives
00:02:17
the result true if at least one of the
00:02:19
operands is true, that is if
00:02:22
you look at the table, there will be a foul
00:02:24
only when both a is a fall and b is a fall, that
00:02:27
is, both operands are false in all other
00:02:29
cases it will be true
00:02:32
write down the conditions the number x does not belong to the
00:02:35
range from 0 to 10
00:02:37
means that you need to write down that x is either
00:02:41
less than zero or greater than ten
00:02:44
therefore, using the operation or we write like this
00:02:47
x is less than 0 or x is more than ten
00:02:53
logical is not a negation, that is, it gives
00:02:58
the result opposite to the value of
00:03:00
the argument true changes to falls off all
00:03:03
changes to the same
00:03:05
statement that the number x is not negative
00:03:08
can be written like this x is greater than or
00:03:10
equal to 0 is will be true, but it can also be
00:03:13
written through negation that this is a
00:03:15
negation of the fact that x is less than 0 and this
00:03:18
will also be correct, and in complex logical
00:03:22
expressions the highest priority is the
00:03:25
operation not then the comparison operation goes by priority
00:03:28
then and and logical
00:03:32
multiplication into the second name and or the
00:03:35
second name is logical addition, that
00:03:38
is, if we look carefully, we
00:03:42
see that the comparison operations are higher to come
00:03:45
there than than and or or therefore these are
00:03:49
the conditions, it is essentially equivalent to
00:03:51
such a notation, but it seems to me that it’s
00:03:55
still worth putting parentheses because this is a
00:03:58
more transparent notation, it’s more understandable and It’s
00:04:01
better to understand than to understand, let’s
00:04:04
look at an example, here’s a
00:04:06
logical expression, how to determine what is the
00:04:09
result,
00:04:11
but I took the growing parentheses, it’s worth srach,
00:04:14
first I wrote down the value of each each
00:04:17
radio comparison 7 less than two is a fall, 3
00:04:21
is less than or equal to 7 is true and 8 is equal to 5
00:04:25
this fall is essentially the following
00:04:28
expression and the first operation performed here is
00:04:32
negation not fall this is true 2 this operation is both
00:04:37
logical and true this is the result of
00:04:41
true and the third is an operation or fall
00:04:45
or true the result will be true that is, since
00:04:47
one of the operands is true then
00:04:50
the result is true in the end we got
00:04:52
the value true
00:04:57
if when performing a logical operation
00:05:00
the value of the first operand is sufficient
00:05:03
to determine the result then the second
00:05:05
operand is simply not calculated this
00:05:08
saves program execution time and in
00:05:12
some cases allows you to avoid
00:05:13
unauthorized access to memory well here are
00:05:17
two simple examples of the
00:05:19
operation or yes and the first condition 4
00:05:22
less than ten has the value true, well,
00:05:26
it’s clear that there is a first operand of tinder
00:05:29
and the results of the operation will also be true,
00:05:31
so for more than three it is not even
00:05:34
checked in the second example, we have
00:05:37
an operation and before is logical and if the first
00:05:40
operand is a fall, that is, less is the
00:05:43
result fund then the second one, but
00:05:46
this complex expression is also not calculated and not
00:05:49
checked

Description:

Операции сравнения в С++. Логические операции. Урок №19 курса "Основы программирования на C/C++". Ссылки на мои курсы по программированию на платформе stepik.org: Основы программирования на С/C++: https://stepik.org/course/55918/promo Основы программирования на C/C++ Часть2: https://stepik.org/course/116440/promo Основы языка Java: https://stepik.org/course/124803/promo Объектно-ориентированное программирование на Java: https://stepik.org/course/133183/promo

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/С++" 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/С++" 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/С++" 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/С++" 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/С++"?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/С++"?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.