All language subtitles for 3. How to use bool Data Types

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

What is going on, guys?

I mean, this video, what I want to talk about before we move on to the next video, to the next exercise,

the next challenge that we are about to do, I want us to talk about how to use Boulle data types,

so how to use Bolian data types.

So similarly to the jurors double's floating point Char's and so on, which every one of them represents

different data types.

We also have a bool data type that its values are either true or false.

So just like you had a floating point, number four, for example, I don't know, three point fourteen

or any other floating point number.

And you also had the jurors, which had simply a broader range of values.

We also have a bull data type, which can be either true or false.

OK, it is very useful and very efficient.

Instead of using like, let's say, a double variable to hold either one or zero.

And it consumes a lot of more and a lot more memory.

We can use a bull for situations where we know that the status of the value inside the variable should

be either a true or false.

Just two options.

OK, that's something that you will encounter a lot in your programming career.

And there are a couple of a couple of ways to do so.

While in other programming languages it is already builtin.

But there are there are basically two options that I think I should mention right now, although there

are also additional options, at least three or four or even five other options to use booleans in our

C programming language.

But two of them I will show you right now.

So the first one goes like this and you should include additional, let's say, additional library.

And it's called include include what should we include?

We should include SD Bulle SD and just search for Buhle standard boolean dot header.

And now if you would like to create some boolean variable.

OK, so let's say you would like to create a boolean variable.

Bool still raining.

OK, still raining and put it put its value to be true.

OK and you simply created a variable of a boolean type with the value of true and you will simply,

you may simply use something like that.

So while it is still raining, OK, while these, these are result here is true then in this case let's

just use print.

If it is still raining, it's still raining.

Rain, rain, rain.

OK, something like that.

So and this iteration will run as long as I don't know, as long as some condition happen.

So when these conditions of still raining will be equal to falls.

OK, this loop, this while loop will be over and then you will stop the execution.

So once you're out, let's say printf.

Oh, it's stopped.

It's stopped raining.

Finally a sunny day.

OK, so very simple.

That's option number one to use the booleans.

The simply include the SDD bool standard Bildad header and the other option would be to use to use an

enum.

OK, I don't remember if we talked about it about it at this point, but I think I can simply write

it down to you that you will be able to know another way of using Boolean.

So it goes like this typedef that we definitely spoke of ENUM and then we write two options.

So false and through these are two options for our Bulle.

OK, so that's how you do it.

That's how you can use another option of using booleans and don't get afraid of these body if you are

not familiar with it.

We already talked about it or we will talk about it in the future.

Let me know if you have any questions about it.

And basically now you know how to use two options of booleans in our or C programming language and you

are ready to move on to the next exercises.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.