1
00:00:00,940 --> 00:00:01,520
OK.

2
00:00:01,540 --> 00:00:04,120
Welcome back to another lecture.

3
00:00:05,090 --> 00:00:13,400
In today's lecture, we will be going over something called strings, which I have kind of already introduced

4
00:00:13,400 --> 00:00:13,970
to you.

5
00:00:14,150 --> 00:00:21,530
If you think back to things like Hello World and some of the other things between devil quotes that

6
00:00:21,530 --> 00:00:29,540
we've printed out with the see out statement, those were strings, except we weren't really making

7
00:00:29,540 --> 00:00:32,210
a string in a variable or anything.

8
00:00:32,210 --> 00:00:37,220
You know how we've made variables with within and doubles and charges and things like that.

9
00:00:38,150 --> 00:00:43,040
You can also make a string type variable, and we weren't really doing that.

10
00:00:43,040 --> 00:00:48,800
We were just kind of hard coding a string by putting the double quotes in the printout statement.

11
00:00:49,810 --> 00:00:53,230
So now we're going to talk about what strings really are.

12
00:00:54,070 --> 00:00:58,840
And they're very closely related to erase, actually.

13
00:00:58,850 --> 00:01:08,110
So that's kind of why I'm putting this lecture right after the arrays because it's kind of fresh in

14
00:01:08,110 --> 00:01:08,800
your mind.

15
00:01:08,800 --> 00:01:16,870
So I'm hoping that you'll be able to draw similarities between how arrays are laid out in memory and

16
00:01:16,900 --> 00:01:22,420
how they work with subscript and all that and how that relates to strings.

17
00:01:23,290 --> 00:01:25,290
So today I'm going to mix it up.

18
00:01:25,300 --> 00:01:29,380
I'm not going to be in visual studio code.

19
00:01:29,380 --> 00:01:31,630
I'm instead going to use them.

20
00:01:32,440 --> 00:01:35,230
I'm actually going to do it from Bash right now.

21
00:01:35,920 --> 00:01:36,910
I am in Bash.

22
00:01:36,910 --> 00:01:42,040
I'm in the same directory that this just says first program, which is really not a first program.

23
00:01:42,040 --> 00:01:46,770
I just keep abusing this directory and putting all these things in here.

24
00:01:46,780 --> 00:01:49,450
As you can see, I already have a strings.

25
00:01:49,450 --> 00:01:58,270
Does CBP file so you can just open that with them and string first CP if you don't have it, you can,

26
00:01:58,270 --> 00:02:05,440
of course, just start from scratch the same way you know them and then strings that CBP will just create

27
00:02:05,800 --> 00:02:08,140
a new file and then you just make sure you save it.

28
00:02:08,380 --> 00:02:15,580
Or if you want to create it first without opening it, then you can do touch strings, CBP or something

29
00:02:15,580 --> 00:02:16,120
like that.

30
00:02:16,910 --> 00:02:22,030
That's another command touch lets you make a file so you can just be like my file here.

31
00:02:22,780 --> 00:02:28,900
You know, whatever the file name is, you can just put that right there, but I already have it right

32
00:02:28,900 --> 00:02:29,320
here.

33
00:02:29,710 --> 00:02:34,660
So I'm going to just open that, OK?

34
00:02:34,690 --> 00:02:39,550
Or so I've already just set it up with a main function like a skeleton.

35
00:02:39,560 --> 00:02:44,770
And this include right here with I'll stream.

36
00:02:46,150 --> 00:02:53,290
And so what we're going to do is just straight up put the data type, which is a string, and we have

37
00:02:53,290 --> 00:02:59,500
access to this data type because of us having the IO stream here.

38
00:03:00,100 --> 00:03:06,760
So the string data type is not really a primitive data type.

39
00:03:07,420 --> 00:03:12,940
It is something that is called a class or an object.

40
00:03:12,940 --> 00:03:14,740
That is something we will get into later.

41
00:03:14,740 --> 00:03:24,070
But basically there's a big file or several files that have to do with the definition of this data type.

42
00:03:24,430 --> 00:03:32,530
And you can actually do a lot of fancy things with strings, as we will see, but declaring it is as

43
00:03:32,530 --> 00:03:34,140
simple as doing that.

44
00:03:34,150 --> 00:03:38,440
So just like an entity, you can do string, you notice it doesn't highlight, and that's because it's

45
00:03:38,440 --> 00:03:39,360
not primitive.

46
00:03:39,370 --> 00:03:41,110
You notice I put float.

47
00:03:41,110 --> 00:03:45,870
It highlights if I put double it, highlights if I put char.

48
00:03:45,880 --> 00:03:48,670
It highlights greens, but string.

49
00:03:48,670 --> 00:03:53,590
Since it's not a primitive type, it's something a little more complex.

50
00:03:53,590 --> 00:03:55,060
It's just remains gray.

51
00:03:56,670 --> 00:04:01,770
So same thing we can put a variable name just like we were before, so maybe I just call this string

52
00:04:01,770 --> 00:04:09,960
s and what I can do is set it equal to something just like Hello world between the double quotes, remember?

53
00:04:10,530 --> 00:04:14,490
So strings go between double quotes all the time.

54
00:04:15,150 --> 00:04:18,210
Single quotes are reserved for chars.

55
00:04:18,510 --> 00:04:24,450
So, you know, a child would be something like that, but a string would be something like that.

56
00:04:26,400 --> 00:04:31,590
So we've used this hello world offer, of course, and our first program, but we just put it in a see

57
00:04:31,590 --> 00:04:31,980
out.

58
00:04:31,980 --> 00:04:37,650
You know, just we had something like, see out, hello world and then in the line.

59
00:04:38,190 --> 00:04:44,870
But now we're actually saving this hello world into a variable called S.

60
00:04:44,880 --> 00:04:46,050
That's the name of the variable.

61
00:04:46,050 --> 00:04:50,460
And of course, here is the type that precedes it, and we use the assignment operator just like other

62
00:04:50,460 --> 00:04:51,000
variables.

63
00:04:52,830 --> 00:04:56,010
So what is a string, though?

64
00:04:56,010 --> 00:05:06,210
So a string is actually technically an array of characters, so you can make an array of characters

65
00:05:06,210 --> 00:05:06,550
right?

66
00:05:06,570 --> 00:05:14,810
And you can imagine that it's just something like between here, like you had an age and an E and an

67
00:05:14,850 --> 00:05:15,480
L

68
00:05:17,820 --> 00:05:25,230
L, you know, I mean, I don't need to continue, but it's basically hello world kind of like that

69
00:05:25,230 --> 00:05:34,050
and an array and you have these positions to like the zero one two three four.

70
00:05:34,680 --> 00:05:41,490
So just like an array, you have positions in a string that are similar to an array.

71
00:05:41,490 --> 00:05:49,200
You have indices and you can then use this sub scripting thing that you are using for arrays already.

72
00:05:49,200 --> 00:05:53,330
And also a big, important thing to remember is that it starts at zero.

73
00:05:53,340 --> 00:05:55,740
That's something we're going to be focusing on a lot.

74
00:05:56,670 --> 00:06:04,050
All of these indices, when you're talking about containers, they're going to be starting at zero and

75
00:06:04,050 --> 00:06:05,110
counting up from zero.

76
00:06:05,130 --> 00:06:09,750
So the first element, its position is at position zero in here.

77
00:06:11,280 --> 00:06:13,530
So the string is kind of laid out like this.

78
00:06:13,530 --> 00:06:18,060
It's really just a bunch of characters connected, which makes sense, right?

79
00:06:18,060 --> 00:06:23,700
Because H is kind of like a character, you know, E is like a character.

80
00:06:24,390 --> 00:06:25,980
L is like a character.

81
00:06:27,900 --> 00:06:31,110
And even the space is kind of considered like a character there.

82
00:06:31,110 --> 00:06:36,780
So it's just really like a collection of a bunch of different characters.

83
00:06:37,710 --> 00:06:39,240
So kind of makes sense.

84
00:06:40,140 --> 00:06:44,370
And when they're put all together, you can call that a string thing is you don't have to have a collection

85
00:06:44,370 --> 00:06:46,260
of a of multiple characters.

86
00:06:46,260 --> 00:06:51,090
You could easily just have this be a string, just see like I was kind of showing before.

87
00:06:53,040 --> 00:06:58,470
So a cool thing about strings, like I was saying is you can actually index them, and when you index

88
00:06:58,470 --> 00:06:59,940
them, it will give you a character.

89
00:06:59,940 --> 00:07:10,020
So I can actually make another variable and say Char C equals and I can actually say I can use s, and

90
00:07:10,020 --> 00:07:13,410
I'll use this subscript operator with these brackets.

91
00:07:14,310 --> 00:07:17,850
And what I'll do is, I'll say s zero and here.

92
00:07:19,820 --> 00:07:26,750
So what don't you like, take a moment and think about what is going to get saved into the variable?

93
00:07:26,780 --> 00:07:30,440
See if I do s- subscribe to zero.

94
00:07:32,250 --> 00:07:33,480
So think about that for a second.

95
00:07:35,440 --> 00:07:40,000
OK, so let's go ahead and actually print this stuff out to see what it is.

96
00:07:41,890 --> 00:07:54,880
So I'm actually into this and I'll print out s, which is the string, and then I will go ahead down

97
00:07:54,880 --> 00:07:57,730
here and I will print out.

98
00:07:57,730 --> 00:07:59,800
See, so you can see what see is.

99
00:08:01,840 --> 00:08:11,080
So I'm going to go ahead and compile this, and it kind of depends on that one interesting thing.

100
00:08:12,150 --> 00:08:20,430
This may or may not work, I believe it depends on the version of C++ that you have installed, but.

101
00:08:22,200 --> 00:08:24,720
You might not be able to print out.

102
00:08:25,930 --> 00:08:35,920
With this output operator, a string without including another thing from Standard Temple Library besides

103
00:08:35,920 --> 00:08:36,610
iOS gene.

104
00:08:36,620 --> 00:08:39,660
So there's another one called string.

105
00:08:41,500 --> 00:08:48,630
So you can actually go, for example, would be something like this.

106
00:08:48,640 --> 00:08:51,730
It's actually string like this, just like iOS Dream.

107
00:08:52,060 --> 00:08:56,530
And that gives you access to a lot of other things that have to do with strings.

108
00:08:56,530 --> 00:09:01,210
You can use a lot of extra little tools, along with strings to do some kind of cool, complicated stuff.

109
00:09:01,690 --> 00:09:07,480
I'm not a hundred percent sure if that is going to be necessary in the version I have running here for

110
00:09:07,690 --> 00:09:10,310
my bash, but we'll have to see if it throws an error.

111
00:09:10,330 --> 00:09:12,160
We will go ahead and include this.

112
00:09:12,730 --> 00:09:14,410
Otherwise, I will admit it.

113
00:09:15,790 --> 00:09:18,640
So I went ahead and did X there to save.

114
00:09:20,150 --> 00:09:25,810
So now I'm going to do the D-plus Plus command, and I'm going to do strings that CP dash.

115
00:09:25,830 --> 00:09:28,460
Oh, and I'll just call it strings.

116
00:09:29,180 --> 00:09:30,710
I'll just call the strings dot out.

117
00:09:33,680 --> 00:09:36,230
OK, so yeah, it has.

118
00:09:37,310 --> 00:09:39,320
Oh, that is actually another problem.

119
00:09:39,380 --> 00:09:40,430
That's a separate problem.

120
00:09:40,430 --> 00:09:43,040
Doesn't recognize string because I wasn't using a namespace.

121
00:09:43,520 --> 00:09:51,080
So if I go back in here, all I have to do really is put the study in Hong Kong before that, since

122
00:09:51,080 --> 00:09:57,700
we are not using doing this using namespace instead.

123
00:09:58,580 --> 00:10:05,840
We actually have to include this namespace with the scope resolution operator, just like we've talked

124
00:10:05,840 --> 00:10:06,530
about before.

125
00:10:07,190 --> 00:10:11,180
So I'm actually going to just use this and add this in here.

126
00:10:11,570 --> 00:10:13,340
So this should fix that problem.

127
00:10:14,480 --> 00:10:17,420
Let's go ahead and compile this again and look at it runs fine.

128
00:10:17,420 --> 00:10:24,700
I'm going to clear and we notice that if I do an LS here or if you're not in bash, you can do there

129
00:10:25,310 --> 00:10:26,390
if you're in seemed.

130
00:10:28,140 --> 00:10:31,950
And we see that we have this string sort out our output file.

131
00:10:33,750 --> 00:10:37,100
So I'll go ahead and run this strings down.

132
00:10:37,650 --> 00:10:42,270
Read us last string start out and you might notice that instead, if you're not in bass, you might

133
00:10:42,270 --> 00:10:45,000
do something like that for string start out.

134
00:10:45,660 --> 00:10:54,780
But you know, I'm going to go ahead and run it standard like bash and we see this hello world string

135
00:10:55,680 --> 00:10:56,580
that was s.

136
00:10:56,730 --> 00:11:02,400
And then after that, we printed out an s sub zero.

137
00:11:02,850 --> 00:11:06,300
So S subscript zero positions zero.

138
00:11:06,300 --> 00:11:07,680
Is this h right?

139
00:11:09,360 --> 00:11:14,640
So pretty interesting that we can do that, let's let's kind of see if we can print out some more.

140
00:11:14,640 --> 00:11:23,400
So if I was maybe to not put this in line yet and I instead just wanted to stay on the same line, I

141
00:11:23,400 --> 00:11:25,950
could do something like.

142
00:11:28,990 --> 00:11:34,290
Actually, I could keep it, I'll keep it on the same line we could just to see.

143
00:11:34,630 --> 00:11:36,970
And then we actually.

144
00:11:39,380 --> 00:11:40,710
I'll leave this see.

145
00:11:40,730 --> 00:11:45,830
So it saved Essence Subzero saving to sea, but let's just keep printing out the rest of these.

146
00:11:46,640 --> 00:11:58,550
So I will go as sub one as sub to s sub three s sub four s.

147
00:11:59,510 --> 00:12:04,360
And you know, I'm just going to go with was zero one two three four.

148
00:12:04,370 --> 00:12:09,200
So we'll just print out hello and then I'll do Angelyne.

149
00:12:10,550 --> 00:12:16,760
So this should actually match it with the characters all smashed up against each other.

150
00:12:16,820 --> 00:12:23,850
It should be h e l l o, and that should print out below our hello world.

151
00:12:23,870 --> 00:12:25,160
So let's go ahead and test it out.

152
00:12:25,170 --> 00:12:31,670
I'm going to do I'm in escape mode now, so I'll go ahead and do a client and an X to save and quit.

153
00:12:31,670 --> 00:12:34,190
Or you can do a W Q and like that.

154
00:12:36,500 --> 00:12:39,140
So now it's saved on.

155
00:12:39,140 --> 00:12:42,920
You go ahead and press the up key so we can re compile it.

156
00:12:44,190 --> 00:12:46,800
And then for some key again, to run it again.

157
00:12:47,640 --> 00:12:53,730
And now we see that we are printing all of those characters as well, so not just the age, but we're

158
00:12:53,730 --> 00:13:05,460
printing out the E the L L just by using the S serve one you know, of to the best sub for there.

159
00:13:06,210 --> 00:13:09,510
So you notice that position zero once again is H.

160
00:13:09,630 --> 00:13:12,450
So we have h zero e as a position one.

161
00:13:13,720 --> 00:13:19,660
First of all, the position to second position three and opposition four, if we kept going, it would

162
00:13:19,660 --> 00:13:27,070
be five six seven eight nine 10, so that would be the total length there.

163
00:13:28,590 --> 00:13:36,000
So speaking of length, what how do we get the length of this string?

164
00:13:36,960 --> 00:13:46,530
So let's go back to our file, so you might be thinking about that potential way to get it with an array

165
00:13:46,530 --> 00:13:57,960
using the size of function and then maybe having like the, you know, the size of the string and then

166
00:13:57,960 --> 00:14:06,030
dividing by the size of like a, you know, sub zero or something like that.

167
00:14:06,330 --> 00:14:10,800
It's possible to like, go about it in that way.

168
00:14:10,800 --> 00:14:12,480
I'll be a little bit harder.

169
00:14:13,110 --> 00:14:15,210
There's actually something that.

170
00:14:17,220 --> 00:14:27,240
Is a bit easier, and it may look confusing at first because we haven't talked about much about functions

171
00:14:27,240 --> 00:14:34,740
yet and gone over how to use functions, and we definitely have in our classes.

172
00:14:34,740 --> 00:14:38,530
And you know, this string, like I told you, something kind of called a class.

173
00:14:38,550 --> 00:14:43,530
It has a lot of data associated with it, but it gives us some nice tools to use, and that was the

174
00:14:43,530 --> 00:14:44,850
point that I wanted to get across.

175
00:14:45,330 --> 00:14:51,090
So instead of just concluding our stream, I'm going to uncomment this and I'm also going to include

176
00:14:51,090 --> 00:14:53,340
this string library now.

177
00:14:54,180 --> 00:15:03,870
So something that I can do to get these links is use the string, which is s.

178
00:15:03,870 --> 00:15:05,210
So that's a variable.

179
00:15:06,170 --> 00:15:15,980
And what all I have to do is use this dot and then tape lengths with some parentheses here.

180
00:15:16,880 --> 00:15:25,910
So it may look kind of confusing, but this is going to give us the length of the string s, which is

181
00:15:26,450 --> 00:15:30,390
and if we were counting the actual length, we're not going to start at zero.

182
00:15:30,410 --> 00:15:31,880
That's just the position, right?

183
00:15:31,880 --> 00:15:37,490
Because we're zero one two three four five six seven eight nine 10.

184
00:15:37,790 --> 00:15:44,750
But if we start at one and we actually counting how many characters are here, it would be one two three

185
00:15:44,750 --> 00:15:45,830
four five.

186
00:15:46,010 --> 00:15:51,500
We're still counting this six seven eight nine 10 11.

187
00:15:51,890 --> 00:15:55,700
So we're still counting the white space here and its length.

188
00:15:55,700 --> 00:15:56,510
11.

189
00:15:58,310 --> 00:16:04,310
So let's go ahead and test this out, I'm actually going to since it's a no, I'm going to actually

190
00:16:04,310 --> 00:16:11,330
make an integer and I'm going to call this string length like this.

191
00:16:14,520 --> 00:16:23,250
And I will, you know, I actually call I just say string like that, I say string l equals.

192
00:16:24,130 --> 00:16:25,790
S Dodd.

193
00:16:25,930 --> 00:16:35,260
So period and then the word length, and then I'll put my finishing semicolon and we have these parentheses

194
00:16:35,260 --> 00:16:36,790
here, don't forget those.

195
00:16:37,360 --> 00:16:39,670
This is something we will talk about later.

196
00:16:39,670 --> 00:16:45,190
But essentially this is very similar to this main function you notice after the main function.

197
00:16:45,670 --> 00:16:48,250
There are these parentheses.

198
00:16:49,230 --> 00:16:53,130
We're going to talk about functions later, I keep kind of saying that, and you're probably like,

199
00:16:53,130 --> 00:16:54,960
when are we going to talk about functions?

200
00:16:55,530 --> 00:16:57,370
We will talk about functions later.

201
00:16:57,390 --> 00:17:04,320
I'm just trying to see, you know, how much stuff we can really stuff into this main function before

202
00:17:04,320 --> 00:17:07,740
we need to break it up and have our own functions.

203
00:17:08,910 --> 00:17:16,440
But nevertheless, this is a function or something that you might often hear as a method.

204
00:17:17,710 --> 00:17:27,050
You know, a method is kind of something that has the dot and then a function after it like this.

205
00:17:27,970 --> 00:17:35,230
Whereas a sometimes you might hear a function referred to as something more like if you had length and

206
00:17:35,230 --> 00:17:40,420
then just like the thing that you're interested in was maybe in here, like your string was inside the

207
00:17:40,420 --> 00:17:41,080
parentheses.

208
00:17:41,080 --> 00:17:47,950
So you may hear that terminology, but you can call it a function right now if you want.

209
00:17:47,980 --> 00:17:53,140
So, you know, because that that works to you and C++, we can just think of this as a function.

210
00:17:53,500 --> 00:18:02,650
And what you're doing is you're calling the function on the string just like the main gets called by

211
00:18:02,650 --> 00:18:03,870
the operating system.

212
00:18:03,880 --> 00:18:06,760
Remember, this is the same thing.

213
00:18:06,790 --> 00:18:10,840
A function is getting called on the string.

214
00:18:10,840 --> 00:18:16,450
And when I say on this because it's using this dot, we're doing X, which is the variable for the string

215
00:18:16,450 --> 00:18:17,850
and then dot.

216
00:18:17,860 --> 00:18:24,340
So OK, we're going to call a function on this now on the string, and we're going to call the length

217
00:18:24,340 --> 00:18:31,660
function in this length function is just going to give us the length of the string, which was 11,

218
00:18:31,660 --> 00:18:35,560
I believe, and it will save it.

219
00:18:35,560 --> 00:18:42,760
So all this stuff that happens right here is giving us that number 11 and it's saving it here into this

220
00:18:43,030 --> 00:18:44,500
integer variable.

221
00:18:44,500 --> 00:18:52,510
So now we should be able to print out this integer variable and have it show us that number, right?

222
00:18:54,970 --> 00:19:02,800
So let me go ahead and just do that, so I also print out this, I'll actually make a little string

223
00:19:02,800 --> 00:19:07,180
here that we can print out, and it'll just be a label.

224
00:19:07,190 --> 00:19:13,090
So I'm just going to say the length of the string s

225
00:19:15,940 --> 00:19:26,050
and I'll put a call in here and then we will just put this string L and I will also put it in line here.

226
00:19:27,790 --> 00:19:29,680
OK, so let's see what happens.

227
00:19:31,420 --> 00:19:33,940
So I'm going to go ahead and compile this again.

228
00:19:35,610 --> 00:19:36,660
And then I'm going to run it.

229
00:19:38,250 --> 00:19:39,910
And there we see R11.

230
00:19:39,930 --> 00:19:46,080
It says length of the string s and then we have a call in and then it says that it's 11.

231
00:19:46,950 --> 00:19:48,090
So pretty cool, right?

232
00:19:48,690 --> 00:19:57,750
And the cool thing is that there are a ton of functions that have to do with these string.

233
00:19:57,770 --> 00:20:05,910
So once you include this guy right here, you get access to a ton of stuff like this where you can put

234
00:20:05,910 --> 00:20:10,440
the dot and put a bunch of other functions that will do cool things for you.

235
00:20:10,440 --> 00:20:13,740
And it's not always necessary to have the done you might encounter.

236
00:20:16,080 --> 00:20:22,350
You might encounter some of these, too, where you'd have a function that you put the string inside

237
00:20:22,350 --> 00:20:25,350
of the parentheses for as well, and it will do something for you.

238
00:20:26,100 --> 00:20:27,720
So pretty cool stuff.

239
00:20:29,760 --> 00:20:33,300
That is something that I am going to explain.

240
00:20:33,300 --> 00:20:42,150
I think in a another lecture where I will kind of go over all the different cool functions that you

241
00:20:42,150 --> 00:20:47,820
can use with strings because they're very useful and we're definitely going to want to use them to solve

242
00:20:47,820 --> 00:20:50,070
some cool problems in the near future.

243
00:20:50,880 --> 00:20:56,700
I don't want you to get too caught up in this funky like dot and then the function and get worried about

244
00:20:56,700 --> 00:20:57,600
like, what is that?

245
00:20:57,900 --> 00:21:00,420
Don't worry, we will explain that for now.

246
00:21:00,420 --> 00:21:06,450
Just think of it as a nice way to get the length of a string if you can just memorize this.

247
00:21:08,050 --> 00:21:09,740
And no, that OK.

248
00:21:09,760 --> 00:21:16,870
Whenever I have a string variable like this is this is here, then I can just, you know, whatever

249
00:21:16,870 --> 00:21:21,250
I call it, you don't have to call it as you could just call it, like, you know, my string.

250
00:21:21,790 --> 00:21:25,990
And you could just do my string length.

251
00:21:25,990 --> 00:21:32,590
You just put whatever the variable name is and then dot length with these empty parentheses here, and

252
00:21:32,590 --> 00:21:33,610
that would give you the length.

253
00:21:33,640 --> 00:21:37,480
So just remember that function for now, because it's sort of a useful function.

254
00:21:37,480 --> 00:21:44,170
And I just wanted to throw one in here for this introduction to strings, but we will be going over

255
00:21:44,170 --> 00:21:45,250
some more as well.

256
00:21:45,250 --> 00:21:52,750
And of course, we will be explaining what these parentheses mean and what it really is to have other

257
00:21:52,750 --> 00:21:56,910
functions besides this one main function that we're stuffing everything into.

258
00:22:00,260 --> 00:22:01,580
OK, cool.

259
00:22:01,600 --> 00:22:07,310
So now, you know, this, of course, wouldn't run, so I'd have to change this to my string.

260
00:22:07,970 --> 00:22:18,650
But I think that I think that we are pretty much good with explaining the basics of the string.

261
00:22:18,650 --> 00:22:23,780
So I'm not going to go change all this and I might just turn this back to this, actually.

262
00:22:26,470 --> 00:22:28,300
So pretty cool.

263
00:22:29,650 --> 00:22:35,410
I will have another video where I go into strings a little bit more, but I thought this was just a

264
00:22:35,410 --> 00:22:37,120
cool kind of introduction.

265
00:22:37,810 --> 00:22:42,340
You can practice making some variables with these, although it's fairly straightforward.

266
00:22:43,060 --> 00:22:46,420
Maybe practicing the indexing would be a good idea.

267
00:22:48,090 --> 00:22:53,700
A good idea as well, this is kind of just meant to be a very basic introduction to tell you what a

268
00:22:53,700 --> 00:22:54,630
string really is.

269
00:22:55,200 --> 00:23:02,820
Show you how it's related to an array and it really has these positions underneath it, you know, that

270
00:23:02,820 --> 00:23:11,790
are like, you know, zero one two three four five six seven, eight, nine and 10 right there.

271
00:23:12,420 --> 00:23:18,000
So right underneath the characters, these are the positions for the string.

272
00:23:18,810 --> 00:23:22,710
And I just wanted to point that out because I feel like that's one of the most important things.

273
00:23:22,890 --> 00:23:27,450
Strings go a lot deeper and we will be going deeper into it in the next few lectures.

274
00:23:27,450 --> 00:23:35,070
But with that, I will let you sit on this and kind of absorb this minimal material that we've provided

275
00:23:35,070 --> 00:23:38,400
so far, and I will see you in the next coming lectures.
