Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,750 --> 00:00:05,490
Hello and welcome in see action in the U.S. for seven.
2
00:00:06,030 --> 00:00:10,420
Today, we have the third movie about this action.
3
00:00:11,020 --> 00:00:21,520
As we remember, the variable is reserved area in our memory inside our computer that stores the data
4
00:00:21,520 --> 00:00:23,640
needed to perform some actions.
5
00:00:23,650 --> 00:00:31,440
For example, we need to calculate some volume or calculate some specific math elements.
6
00:00:32,290 --> 00:00:32,740
This.
7
00:00:33,650 --> 00:00:35,090
Variable and.
8
00:00:36,930 --> 00:00:46,860
The size of the desert memorial depends on the type of this element, so different sizes for the char
9
00:00:46,860 --> 00:00:50,070
elements and different sizes for floating point.
10
00:00:50,080 --> 00:01:00,870
But in later we will go deeper so that programming guy or the programmer computer is going to variable
11
00:01:00,870 --> 00:01:06,780
using this name specific to variable declarations.
12
00:01:06,790 --> 00:01:19,920
So we have always the name and the type of our variable, and we can't leave this without this declarations.
13
00:01:20,190 --> 00:01:25,440
So we always need to perform this specific elements.
14
00:01:25,920 --> 00:01:27,930
Let's go to first example.
15
00:01:28,470 --> 00:01:38,790
In first example, I did a small script in, say, the Civil Seven where I put some declarations we
16
00:01:38,790 --> 00:01:48,900
have char and float short double bird by word and the word, as you see.
17
00:01:50,030 --> 00:01:59,120
Every time I use the declaration online, I need to perform that declaration time and I need to perform
18
00:01:59,120 --> 00:02:07,180
the name of the variables inside our script and I need to finish the line with semicolon.
19
00:02:07,190 --> 00:02:10,820
But we did talk about this in the video.
20
00:02:10,850 --> 00:02:14,990
If you didn't solve this, go back and check this.
21
00:02:16,790 --> 00:02:30,020
So we have the four basic dives inside and C and also in C actions in C, we have the cha cha issues
22
00:02:30,020 --> 00:02:30,410
for.
23
00:02:31,710 --> 00:02:45,240
Keep in memory the one character, that ASCII character, and we can inside this jar, we can put,
24
00:02:45,240 --> 00:02:48,390
for example, the A, B, C, the.
25
00:02:49,470 --> 00:02:51,790
Each character separately.
26
00:02:51,810 --> 00:03:01,810
So if you want to have 10 characters, we need to have 10 variables inside our script.
27
00:03:02,460 --> 00:03:05,970
The next basic is integer int.
28
00:03:06,480 --> 00:03:14,030
It keeps usually in 64 bytes, brontosaurs, four bytes memory.
29
00:03:14,220 --> 00:03:17,060
We can put here that integers.
30
00:03:17,080 --> 00:03:22,440
We can put here some big numbers and low numbers.
31
00:03:22,440 --> 00:03:26,130
But I have examples in lighter's screens.
32
00:03:26,940 --> 00:03:35,720
We have the float, so we need sometimes put some calculations inside our variables.
33
00:03:35,730 --> 00:03:40,650
So we have the floating point values in float type.
34
00:03:40,650 --> 00:03:44,730
We can use the six digits after the.
35
00:03:46,090 --> 00:03:55,930
Dot pointing so we can put that zero point zero zero zero zero zero, for example, nine, and we have
36
00:03:55,930 --> 00:04:02,020
the six digits and we can put this into Floud type.
37
00:04:02,500 --> 00:04:03,700
The next is double.
38
00:04:04,060 --> 00:04:15,070
Double has the double possibilities as flawed so we can have 10 digits after our point number.
39
00:04:15,400 --> 00:04:22,020
But the memory in our memory is that memory computer.
40
00:04:22,180 --> 00:04:27,360
We need the eight bytes every time we use this data type.
41
00:04:29,380 --> 00:04:40,930
We can use some modifiers inside, see actions, we can use the short, long side on side and some more,
42
00:04:40,930 --> 00:04:53,140
but it's the basic modifiers for C language so we can put before, for example, and we can say short
43
00:04:53,140 --> 00:04:59,980
and long and unsigned int signed in so we can modify the.
44
00:05:02,010 --> 00:05:13,080
The variables limits inside our number, so we can have that integer if we sign and we have the same
45
00:05:13,080 --> 00:05:24,810
integer with unsigned only numbers so we can modify our memory and we can also change the limits for
46
00:05:24,810 --> 00:05:26,130
our docs.
47
00:05:27,860 --> 00:05:41,210
In this example, I show how to use this modifiers inside integers so we can have them less or more
48
00:05:41,210 --> 00:05:44,270
space used in our process of.
49
00:05:45,080 --> 00:05:52,150
So I have 64 bit processor and my int integer base line.
50
00:05:53,420 --> 00:05:58,430
This first line and this line keep for me four bytes.
51
00:05:59,000 --> 00:06:08,720
So my memory is used for bytes and we can decrease the range using this, for example, short end.
52
00:06:09,470 --> 00:06:16,730
And after I use the short end, my size of memory used for this kind of.
53
00:06:17,820 --> 00:06:21,600
Dog is shorter to two bites.
54
00:06:22,640 --> 00:06:32,000
As you see below, I use that end short and I use that big, unsigned, long, long end to show you
55
00:06:32,030 --> 00:06:43,820
how our integer working inside wins see seven so I can put my ten number inside my values.
56
00:06:44,180 --> 00:06:48,460
But after this, the size of the stack is different.
57
00:06:49,220 --> 00:06:56,330
So our integer short is that less space inside our script.
58
00:06:57,260 --> 00:06:58,190
Keep in mind.
59
00:06:58,940 --> 00:07:07,460
So if you don't need a lot of memory inside your scripts, you can make this shorter to make this better
60
00:07:07,460 --> 00:07:08,240
performance.
61
00:07:10,770 --> 00:07:13,170
Here I put some.
62
00:07:14,030 --> 00:07:24,020
Examples how to use this, some basic elements inside the NCC, so we have the JARDÍN flow chart, double
63
00:07:24,680 --> 00:07:34,250
byte word and the word ball by word and the word is specified for Zaman's application because we always
64
00:07:34,250 --> 00:07:37,310
use in Zaman's application this kind of stuff.
65
00:07:37,790 --> 00:07:41,840
But the first chart in Floud, short double.
66
00:07:42,770 --> 00:07:45,840
As you see, I put some declarations.
67
00:07:45,840 --> 00:07:57,660
So ABC is four for me a the floating value is zero point zero zero zero zero three integer number is
68
00:07:57,980 --> 00:08:05,990
two nine nine and for example, double the value of this 19 dot nine nine nine nine nine nine nine one.
69
00:08:06,590 --> 00:08:10,940
And my book value, I can put that true or false.
70
00:08:10,940 --> 00:08:17,750
It's my declarations and I can use this bool value inside my script later.
71
00:08:21,380 --> 00:08:31,250
Inside, we see actions we can put us under our eyes, let's say I heard the floating point table with
72
00:08:31,250 --> 00:08:38,720
100 lemons, this table has the 100 elements with.
73
00:08:39,580 --> 00:08:46,390
Floating point values, so I can put 100 floating point elements inside out.
74
00:08:46,420 --> 00:08:49,480
All right, I have the index.
75
00:08:50,490 --> 00:09:00,790
This index go through my table one by one, and I can put a lot a lot of values inside my table.
76
00:09:01,980 --> 00:09:04,700
We have the index from zero.
77
00:09:05,730 --> 00:09:15,860
So I have to index 99, as you see on screen, the same with integer table as you see we have in the
78
00:09:15,870 --> 00:09:22,280
end, in the end and twenty ninth element is also the integer.
79
00:09:23,310 --> 00:09:31,740
We don't have to index because it's out of our table, the same as that chart table.
80
00:09:31,990 --> 00:09:39,770
As you see I have two hundred fifty, fifty six elements by my index.
81
00:09:39,780 --> 00:09:51,630
It's only going to to fly five and if I put some characters' inside our inside my table three in last
82
00:09:51,900 --> 00:10:01,260
element I need to put the null value so system know that it's finish off my table of string.
83
00:10:02,980 --> 00:10:15,100
I can also declare some Konstanz, so as you see my chart, text one and I open and close the brackets,
84
00:10:15,230 --> 00:10:20,080
it's find me here but this the same I can make it with.
85
00:10:20,080 --> 00:10:26,140
The second option is text two, but it's the second option.
86
00:10:26,290 --> 00:10:27,340
The text, too.
87
00:10:27,580 --> 00:10:37,360
I have the indicator to my text and I can put also the find me here after I print a f this option,
88
00:10:37,690 --> 00:10:49,270
we will talk in about the print F options, but not now its introduction to C actions to show you step
89
00:10:49,270 --> 00:10:50,700
by step the elements.
90
00:10:50,740 --> 00:11:00,250
So I use the print F option and I displayed inside our we see runtime that values.
91
00:11:00,430 --> 00:11:10,690
So on the right side you see that text in text one was find me here and text in indicative text to was
92
00:11:10,690 --> 00:11:11,350
also there.
93
00:11:11,350 --> 00:11:12,190
Find me here.
94
00:11:13,520 --> 00:11:24,710
In ruins seafoam seven actions, we can declare some numbers, usually we use the decimal, but in some
95
00:11:24,710 --> 00:11:28,790
case we can use all of that hex and floating point.
96
00:11:29,750 --> 00:11:33,500
The first decimal is the easier one.
97
00:11:33,650 --> 00:11:38,930
We can put, for example, one where 50, 60 or so.
98
00:11:39,290 --> 00:11:41,990
It's that simple into.
99
00:11:43,040 --> 00:11:50,990
That's human, for example, at the end value we can put of that hex value, if you want to put the
100
00:11:50,990 --> 00:11:58,200
hands value, we need to remember about the zero X before our X value.
101
00:11:58,700 --> 00:12:08,430
It's important because without this system will know that it's dead simple at not X, it's just difficult
102
00:12:08,980 --> 00:12:11,210
to think to remember about this.
103
00:12:12,140 --> 00:12:14,420
The last point is the floating point.
104
00:12:15,170 --> 00:12:19,460
First is the normal notification about the floating point.
105
00:12:19,470 --> 00:12:22,430
So it's one point ninety nine.
106
00:12:22,730 --> 00:12:25,610
It's normal or 5.5.
107
00:12:26,270 --> 00:12:30,110
It's it's just not notifications.
108
00:12:30,650 --> 00:12:39,770
And the next, if you want to use the power, we need to remember the power in WTC four seven actions.
109
00:12:39,770 --> 00:12:44,360
We need to put 1.0 e power.
110
00:12:45,110 --> 00:12:52,340
Then, for example, as you see on my screen, it's the power version of Floating Point.
111
00:12:55,130 --> 00:13:03,500
If you have any questions about this, alignment's I talked today does give me the comments, I hope
112
00:13:03,500 --> 00:13:10,130
you understand how you go with variables, incitements to civil servants actions.
113
00:13:10,970 --> 00:13:14,180
If you have something, leave me the comments.
114
00:13:14,300 --> 00:13:18,170
I try to make you the answer.
115
00:13:18,920 --> 00:13:24,050
In the next video, we will go through next introduction movies.
116
00:13:27,240 --> 00:13:36,090
Keep in mind that I used always the Zamansky mom, for whom I used also the C programming language,
117
00:13:36,090 --> 00:13:36,600
but.
118
00:13:37,670 --> 00:13:46,850
I use also the C programming language, the answer is C from Brian Darryll Cadigan, it's the fantastic
119
00:13:46,850 --> 00:13:52,250
book and my blog is MISCA the word go dot com.
120
00:13:53,240 --> 00:14:05,960
Goldar, I invite you to my mailing list so you can be up to date with my documents and some presentations.
121
00:14:06,680 --> 00:14:10,070
See you and have fun.
12255
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.