All language subtitles for 2. Welcome printf() function!

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

All right, so now what we want our first program to do is just to print out Hailo Alphatech message

to our screen.

So then once we hit the wrong button, this program, this Alphatech message will be.

Boom.

Just print it out on our screen.

And to do so, we will, first of all, clean everything out of here and start with a blank page, OK?

Now, I want you to simply write the following lines of code together with me.

First of all, we will include include the standard, the input output functionality to work program

by including the SDD I o dot h.

And now we have our entry point, which is aimed to Maine.

And then we use the curly brackets.

And here is going to here are going to be the commands of these block.

All right.

And the first command that we would like to use is simply a command that will take some tacks, then

put it out on the screen as we wanted it to.

So these command in C language is called Pareene TEF and then C language.

And the way that we ask a computer to print out a sentence to our screen is done by using these function.

These printed function.

So simply saying we wanted to print a sentence of hello world or a low alphatech it would be done using

these parentheses.

And then all of the text that we want to be displayed on the screen will be placed under these quotation

marks.

For example, we can just use hello world message here.

And at the end, we should also add a semicolon.

And then we should also use the return zero.

Right.

Which we introduced previously.

And now we can run this program, build and run, build and run.

And then let's see what.

Oh, here is our message.

Hello, world.

Just on the council application.

Exact figures we can see in the print F Command.

This is the text to be displayed on the screen.

Limit aside, for now, these process return zero and Dixy and the execution time.

We'll discuss it later on.

But for now, that's looking good, right?

And we were asked to print out a Hello Alphatech message.

So let's just we.

This one.

Hello, Alphatech.

As requested.

And I just want to show you guys that it doesn't matter what text you put in these quotation marks,

it can be Hello World, Hello, Alphatech, or whatever other text that you are going to use in the

next challenge, as in the next exercises.

So let's try to run and to build and run it.

All right.

So very go.

Here is your message.

Hello, Alphatech.

Good job, guys.

And one thing to mention here that I want to tell you is that in these quotation marks, we specify

the exact text or Bettis or better essays string that we want to be displayed on our screen and the

exact text in these cases.

Hello, Alphatech.

That appears between these quotation marks.

And also you don't have just to use words.

You may also use numbers.

Let's say one, two, three, four, five, six, seven, and then press some build and run.

And then you can see one, two, three, four, five, six, seven, just on the console application,

as you expected.

Also, don't forget to add this return zero thing because it simply specifies that the operating system

that that program has terminated successfully.

So to summarize, what we've done here is so far, we simply use the print f command, the print function

to display some text on the console application screen.

And that's very important to understand, because in these course, all four printed results are going

to be seen on these console applications screen on this guy.

OK, all of the results are going to be seen here.

And also we'll use these console application to read information, to read some data from the user.

But this will be the next section.

But for now, that's okay.

We'll just look at these console application as the place where we are going to print some text, some

data.

All right.

So hopefully everything works smoothly for you so far with no unexpected bugs.

But if you've still got some problems, stick a closer look and see if everything written as it should

be that you didn't miss any semicolon at the end of each command, maybe parentheses, not written correctly

or maybe something with these curly brackets.

And if you still can find why it's not working, please stick.

Check out the FEC, U.S., maybe somebody already asked a similar question.

And now let's get back to the Hillo message we used previously.

And Lo Alphatech or.

Right.

And.

We run it.

We can see in the consular application there.

There is this additional text that we don't even know where it came from.

This text is a default text that you're going to see a lot and you would like to keep some distance

between these not so necessary text to your real output.

In this case, the hello message.

And to do so, you would like to do some sort of hitting the answer button right here.

Just before these default text starts.

Right.

So you can get one line down.

So luckily for us, we can do that programmatically.

We can change or basically specify getting one line down by using the backslash and the backslash and

notation within the print of command.

So it will look something like this.

Let's add a new line here.

So we'll just add backslash.

And now if we go and run and build and run, this application we've created will simply see that there

is a new line added separating between the real text that interests us.

Do these default information displayed on the console application.

Great.

And basically, you may add also these backslash and wherever you wanted it in your text.

So, for example, you may add a backslash and right after every word in the text.

Here in the Hello Alphatech.

And try to print out something like this.

Let's go this way.

All right.

And now we will run it.

We will see that every word is printed in a different line.

So here.

Hello, Alphatech.

And these spaces, because we just specified the backslash end right here, if we move it a little bit

to here.

Right.

So we don't give it an option to start a new line with a space and backslash an off through this guy.

All right.

Let's try this one once again.

And there you go.

You can see the hello and Alphen Tech.

Everyone is specified in in in a new line.

Hello.

Just by using these backslash GUI and now we can say congratulations for writing your first program.

Now let's practice that knowledge with different cool exercises, different cool challenges that will

help you to improve your skills.

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