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

Download "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e C++"

input logo icon
Video tags
|

Video tags

variaveis em c
variaveis em c++
variavel char em c
variáveis em c
definição de variavel
c++ variaveis
c++ variables
curso de c
curso de c++
curso c++
curso c++ 2020
c++
C (Programming Language)
curso
curso em video
linguagem c++
linguagem c
curso de programação
aula de c++
programação
c++ programming
c++ programming language
curso de c++ completo
curso de c++ 2020
tipos de dados
tipos de dados logica de programação
tipos de dados linguagem c
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:02
full course channel, go down, and more,
00:00:05
in this video you will learn the types
00:00:08
of data, how to define variables in themselves, and
00:00:11
be more, you are in the full course, and you will
00:00:14
see all types of data, both
00:00:15
integer stringhi and use all this
00:00:17
front here in this video declare
00:00:20
variables you will also learn in this
00:00:22
video but you don't see if you write activate the
00:00:24
bell leave your like share there is
00:00:26
a playlist here below the
00:00:28
complete course so you can do it in
00:00:30
sequence so let's go straight to see some
00:00:32
types of data in c and c is more from
00:00:35
now on we saw the
00:00:38
previous video, remember that every program
00:00:40
in being he bought from basically
00:00:42
a header, free libraries and a
00:00:46
man function, ok, the whole program you will
00:00:49
have to have this structure ok and we
00:00:50
had already done it in the previous video and then I
00:00:53
debuted ok we used namespace std
00:00:55
so we could activate the functions
00:00:58
herald and l
00:01:00
and intimem return 0 ok let's go then
00:01:03
talk about the data types in your what are
00:01:05
data types are the information that
00:01:08
you will store in your program, okay, these
00:01:10
are the variables that you will store
00:01:13
some information perfect so how to
00:01:15
declare a variable also and be the
00:01:18
first item you put its type the
00:01:20
name of the variable and its value so
00:01:23
let's talk start talking by the
00:01:24
int type the int type what is the int type it
00:01:28
will store integers ok integers
00:01:30
are numbers that you know in everyday life
00:01:33
10 15 27 without are all
00:01:38
integers ok it is the number that has
00:01:42
decimal places it is not a number
00:01:45
perfect integer 3.14 value of pi is not an
00:01:49
integer perfect every integer
00:01:50
any set of numbers that you
00:01:53
will work with on a daily basis so let's
00:01:55
create a variable I'll talk next
00:01:57
hot number just a number
00:02:00
one ok, that way I've already declared one
00:02:03
variable to be int number, from
00:02:06
now on the variable number exists, it is
00:02:10
defined and it will contain an
00:02:12
integer, there is another way to declare it,
00:02:14
also passing a value in which number is
00:02:16
equal to 10, for example, ok, it is another
00:02:20
way of declaring integer variables,
00:02:22
cool, I I don't know from this moment
00:02:25
that I have this number I can send
00:02:27
an audio, right?
00:02:40
let's run it so
00:02:43
we can see what the number is and put the number
00:02:46
we define up here so
00:02:48
from now on you will have a
00:02:49
variable allocated in the program and what
00:02:53
happens it will allocate a piece of
00:02:55
memory ok some dances to store
00:02:58
this variable are you
00:03:00
and you already have a variable defined like take
00:03:02
a look here at high power the number is
00:03:06
10 look how cool it is so here you have
00:03:09
even done one showing how you will show
00:03:11
this variable perfect all the
00:03:13
languages ​​derived from and it follows a
00:03:16
little similar, right? you see it's a java
00:03:18
script for example java follows very
00:03:21
similar the takes the one dollar in this
00:03:23
variable it's the dollar something but it
00:03:25
follows this same line of defining
00:03:28
variables cool let's see now
00:03:30
another type of data in being more more this is
00:03:33
worth it in and and us be more more is the base
00:03:37
is I don't know but it's also worth I don't know
00:03:39
more but it's the definition and you out just be
00:03:42
more more okay so number inter
00:03:45
inter to store integers ok it
00:03:48
has none none modifier in it it
00:03:51
counts negative and positive numbers ok
00:03:54
now let's create a second one now
00:03:56
if I want to store the value of pi, right
00:03:58
three points 14 and 15,
00:04:00
the step we will define a variable
00:04:02
like flut is the name front sells
00:04:06
floating point so three points 1415
00:04:09
means that this point floats right,
00:04:12
if you multiply by 101, for example,
00:04:15
it comes here by 0.01 and comes here,
00:04:18
so it can vary, right, float in the
00:04:21
number, so this is a floating point, ok,
00:04:23
so I give the name of the variable, right, flute,
00:04:26
I'm going to call it a point, okay? dot
00:04:31
underline in floating color ok equal to
00:04:38
3.14 15 so here, defining a
00:04:40
variable in being a second
00:04:43
flut type variable is always the type, the name of the
00:04:46
variable and its value it is not necessary to
00:04:48
specify at this point the value
00:04:50
is still as we saw so south
00:04:53
floating point equal to 3.14 15 I can call
00:04:57
it changing her name for dinner pin, right,
00:04:59
ok
00:05:00
and remembering that if it is case
00:05:02
sensitive, it's like lowercase pi, it's
00:05:05
different from capital pi, okay, so
00:05:09
I'm going to put a as perfect pe, the name of the
00:05:12
variable pe variable number has some
00:05:14
rules, right, if it can't, therefore, it can be a
00:05:16
special character in the variable type sink
00:05:19
asterisk I didn't have myopia tic-tac-toe,
00:05:21
that's not valid, okay, okay, name are
00:05:24
letters and numbers where scor
00:05:26
variable number in c top from deep 3.14 15 if
00:05:31
I want to show this if audio, right smaller
00:05:34
smaller me
00:05:35
and I'm going to put here double quotes the
00:05:40
value of pi is smaller smaller fi ok here
00:05:47
I want to plus online okay I want to
00:05:49
skip a line I'm going to do it without skipping
00:05:51
a line so you can see how
00:05:53
it works ok so the value of pi and p name of the
00:05:57
variable there so let's run this one
00:05:59
will just run so we can see this new type
00:06:02
of variable floating point or front is
00:06:06
here look how cool it is the number is 10 here
00:06:10
is the value of pi is 31415 replace your
00:06:14
name bath from there he what he did
00:06:16
he put everything here oh he doesn't skip
00:06:18
lines anymore oh everything is a bit stuck together,
00:06:20
you see that's why we
00:06:22
used underlining to separate the rest of
00:06:24
mine, which is buggy, right? and for the
00:06:26
rest of the perfect bass line it was
00:06:28
still bang if you are in the
00:06:30
directory for example if I give a loaf of bread
00:06:33
so I can put it in the directory a and there is
00:06:34
his name here
00:06:35
and I will have it today, you can see I have a
00:06:37
roll in the world point of say if I call
00:06:39
point slash hello world it will point dese
00:06:44
it will execute it will be clean
00:06:46
for me look the number is 10 the sink value
00:06:48
3.14 if you want to call the executable
00:06:51
it is the program we made it is here in
00:06:54
debug it has a few more things
00:06:55
so I'm going to add edilaine too
00:06:58
and it's ok remembering that ml is part
00:07:02
of the std namespace they will continue so
00:07:04
one more type of variable now in being
00:07:07
more more and you're replanting not being
00:07:09
how much I don't know anymore
00:07:12
and remembering that the type both int type
00:07:15
and flaut type it will occupy 4 bytes
00:07:19
of memory to allocate the
00:07:22
perfect variable so there is a size and
00:07:24
memory is 4 bytes to allocate this
00:07:28
variable I will if you need a
00:07:30
larger number we are talking here it is
00:07:31
a number extremely large, right?
00:07:48
count a floating number, so if for
00:07:50
example you need a number, the
00:07:54
iel number is a very large number, it will be 9,999
00:08:00
very, very, very large, I have
00:08:03
double, ok, it's not big here,
00:08:06
in fact, I'm going to do a better one, I
00:08:07
'm going to leave this number and move the point
00:08:10
here, okay, I'm going,
00:08:12
this is the numbers that will actually be released
00:08:15
municipally to rent double, it's the same
00:08:18
thing here, so if out
00:08:22
the smallest, the giant number is smaller,
00:08:30
better, smaller, larger number, and he who
00:08:35
is already training a little, but your
00:08:37
audio, we'll run it here for us to see,
00:08:40
okay, so he already showed his mother that today
00:08:41
a notation that is one is one to the power of
00:08:45
plus 36, okay, we're going to use a note
00:08:48
because it's the number, it's actually going to be
00:08:51
saved like this, okay, okay, there's already a
00:08:54
note then one to the power of plus 36 ready
00:08:57
due to the size of the number ok
00:09:01
let's talk we have a very
00:09:03
important type I don't know now ok it's a
00:09:06
set of one character just ok I'll
00:09:09
pull it now so bye ok letter you
00:09:14
can define it so you you can
00:09:15
put any character here, thiago
00:09:17
will allocate from 0 to 255 beats, ok, so
00:09:21
any letter
00:09:22
a car letter equal to ok, so let's
00:09:25
put it here, ok also ducharse audio
00:09:28
same thing you are loud if audio smaller smaller
00:09:33
the letter is
00:09:37
the smaller smaller letter letter okay nl perfect
00:09:46
so here it will allocate a set of
00:09:49
1 byte for a perfect pull is the basis
00:09:52
of the string quilt air in being cool so
00:09:56
what I'm going to do as it's getting a lot
00:09:58
I'm going to take it and add it to
00:10:00
the one already used then leave one more
00:10:02
always highlight something new.
00:10:21
c the language is a
00:10:25
string is a set of characters is a
00:10:27
network characters is a list of
00:10:29
characters okay so these are the
00:10:31
basic types some basic types of data in
00:10:35
perfect c you do be more but it changes a
00:10:39
little when we start to
00:10:40
working with stringhi become stringer a
00:10:43
set of chars ok so several
00:10:45
characters will form a string several
00:10:48
letters together form a string type
00:10:50
so what am I going to do for you I am going to
00:10:52
save this code here and I am going to make
00:10:56
a code in C so you can see how
00:10:58
it's strings and then I'm going to write a
00:11:01
code in C++ so we can see the string
00:11:03
in both, okay, so I'm copying it
00:11:05
here and we're going to put a program in C
00:11:08
now so we can see it from the stream,
00:11:11
ok, these types are valid, I don't know and
00:11:14
I don't know what else we've already seen, you know,
00:11:16
include std,
00:11:17
ok, perfect in an instant, there, the intimate and
00:11:23
perfect voice, and I could sesc he wants the
00:11:25
divine code, another is inscribed, so
00:11:27
when I define a variable, it's supposed to be
00:11:31
strings, and the language is ok you will
00:11:35
define it by name ok
00:11:38
its size let's go because the name is 30
00:11:41
right and its value is the same for example
00:11:43
davis from now on
00:11:46
and I have a stringhi variable
00:11:51
well so let's see how to define strings
00:11:54
right in the c language ok how are you going to do
00:11:57
the language it will be stringhi it will be a
00:12:00
set of characters find a list
00:12:03
of characters an array of characters
00:12:04
how do you define this take the name of
00:12:08
your stringueta you will define
00:12:09
its size here and let's go because it was 30
00:12:12
it's name a variable with 30 karsoke
00:12:14
equals open double quotes is its value
00:12:19
so I'm here in case put davis is
00:12:21
set close name is a string of 30
00:12:25
bytes and memory is 30 chars with the name
00:12:29
deivila is receiving davis perfect
00:12:31
languages ​​and I will show you the
00:12:33
print f is the printf function how it
00:12:36
works double quotes ok the value of the
00:12:41
name is for example when you printf
00:12:46
you do what percentage is this what is
00:12:49
percentage stringhi is everything how
00:12:51
and what is the value of string percentage f and
00:12:54
put a comma after the variable
00:12:56
name for example semicolon at the
00:12:58
end so show you better the
00:13:01
printf function you will go through because
00:13:03
you are printing it is and the variables with a
00:13:06
comma after it are and this will
00:13:08
replace the string variable the
00:13:10
current price is if at the time of printing
00:13:11
replace this percentage with the
00:13:14
variable ok so this way of defining
00:13:17
strings in the c language ok we'll
00:13:20
see if it runs more so we can see
00:13:23
debug the value of the name is davis look how
00:13:28
cool perfect here didn't put bahraini if
00:13:31
you want to put it I can put a
00:13:32
slash right, now it's language,
00:13:35
come on, let's remember that for whoever you are, I
00:13:39
have to have English dst then the dot
00:13:42
h and this way define strings in the
00:13:44
language c
00:13:47
the value of name is deivison ok ok, that's
00:13:50
right, cool, right now we're
00:13:54
going seeing how to define strings is more
00:13:57
perfect, so I'm going to return the code to
00:14:00
be more cool because I'm
00:14:03
showing both languages, it's all in
00:14:05
you when you
00:14:06
learn the base, right?
00:14:11
which was already there I debut now
00:14:14
because this is more namespace std
00:14:15
cool the mogi to define string in c
00:14:19
++ now that he previous example is
00:14:21
there is a type in ser more more right to
00:14:24
resolve this called stringhi so
00:14:26
england
00:14:28
the stringer is from now on we
00:14:31
already have these types of string prefect of
00:14:34
page exactly stringhi name equal
00:14:38
name semicolon ok so
00:14:42
from now on the other thing strengh double quotation marks
00:14:45
ok it's a little extra detail here
00:14:47
for you it's not equal to I do
00:14:49
n't know what else, but seraut, not
00:14:53
the string type, it has already been encapsulated, right,
00:14:55
this array, leave it, has already been
00:14:57
encapsulated, no, strange type, right, the name
00:15:00
is
00:15:01
the smallest, the smallest name, it's better to fill it, it's a
00:15:06
way of defining it, destroying it, it's
00:15:09
more, it's include stringhi the header of
00:15:13
stringueta streaming library in the
00:15:15
string name equal in double quotes is
00:15:19
the name and if out the name that we have already
00:15:23
seen let's run
00:15:27
it is a because my everything right the name is
00:15:32
davis cool so then you have a way of
00:15:33
defining half stream So,
00:15:35
remembering, we saw type int, there are
00:15:38
integer values, flute, floating point,
00:15:40
right, a value that has a point, double,
00:15:43
which is for larger values,
00:15:45
requires flow to four decimal places.
00:15:47
From here, the precision of the double is
00:15:50
ten decimal places. from the point,
00:15:52
there's a big difference here, they take up 4
00:15:55
bytes, which occupies 8 bytes, ok, there's a
00:15:58
set of zeros, 235, right, the
00:16:01
ascii code here will have letters and numbers, ok, and
00:16:04
spring, that's what it's a
00:16:06
tea network and it already has more
00:16:09
stringhi type, if you can use the direct
00:16:12
stringher, of course, always using the
00:16:14
implant, right stringhi, the variable equals
00:16:18
double quotes the name you want and
00:16:20
your audio in it is here, this example is
00:16:23
very cool from
00:16:25
this point onwards, it's cool, right?
00:16:40
bringing it according to the next videos,
00:16:41
you can change these types of
00:16:43
variables and there are some other types of
00:16:45
pointers, all of this that he will see
00:16:47
in the next videos, you want new ones,
00:16:49
write now, don't forget, activate the bell, leave a
00:16:51
like, share sex, bell, like
00:16:54
tomorrow at the same time We continue
00:16:55
our course of being and being more
00:16:57
complete here on the channel so you
00:16:59
liked the next video, thank you, see you on the
00:17:01
playlist below, okay bye

Description:

Vamos falar de tipos de dados e de como definir uma variãvel em C e C++. No C e no C++ temos alguns tipos básicos de variáveis int, float, char. Para definir uma variável você utiliza o tipo, depois o nome da variável e pode setar um valor inicial na definição. Exemplo: Definir uma variável tipo int - números inteiros int variavel = 10; ou int variavel; Playlist Curso de C e C++ https://www.youtube.com/playlist?list=PL5EmR7zuTn_bONyjFxSO4ZCE-SVVNFGkS No Curso de C e C++ vamos aprender tudo sobre a linguagem de programação C e a linguagem C++. Aprender a programar em C e C++ abre um universo de possibilidades, a linguagem é usada como base de vários sistemas operacionais, aplicativos de mercado, jogos e consoles. No Curso de C++ 2020 vamos trazer a programação em C e C++ no Visual Studio Code com o MINGW ou MinGW64 vamos aprender: - O Que é a Linguagem C e a Linguagem C++ - Diferenças entre C e C++- C++ com VISUAL STUDIO CODE - Instalar o compilador MINGW no Windows 10 - ESTRUTURA BÁSICA DE UM PROGRAMA EM C e C++ - Tipos de Dados e Como Definir Variáveis em C e C++ - Entrada de Dados em C e C++ - Operadores Aritméticos em C e C++ - Exercício em C++ usando cin e cout - if else - switch case break - while em C e C++ - Estrutura de LOOP - do while em C e C++ - for em C e C++ - arrays e vetores - structure - function - funções em C e C++ - passagem de parâmetro por valor e por referência para função em C e C++ - templates - função fatorial - funções com argumentos variáveis - ponteiros pointers - Programação Orientada a Objetos em C++ - Herança de Classes em C++ - Polimorfismo em C++

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 "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e 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 "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e 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 "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e 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 "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e 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 "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e 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 "Curso de C e C++ - Tipos de Dados e Como Definir Variáveis em C e 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.