1 00:00:07,390 --> 00:00:11,290 So just to give you some help with doing the editor project, this video is just a 2 00:00:11,290 --> 00:00:15,620 quick demo of what the editor should do when its done. 3 00:00:15,620 --> 00:00:21,330 So here I'm in a solutions file, which you'll get after the project is over. 4 00:00:21,330 --> 00:00:24,986 Remember, this is our solution. Your solution will have a similar 5 00:00:24,986 --> 00:00:29,081 structure, maybe not the exact same structure, and should definitely have 6 00:00:29,081 --> 00:00:33,197 this functionality. Let me run it. 7 00:00:33,197 --> 00:00:37,677 And then I'll start it with main of make Editor, but we'll just start it with an 8 00:00:37,677 --> 00:00:44,271 empty string, and of course, in an empty string, it has to be at position 0. 9 00:00:44,271 --> 00:00:47,930 And it pops up a little editor here. Let me move it so you can see it a bit 10 00:00:47,930 --> 00:00:53,883 better. And I can just type in this editor, hello 11 00:00:53,883 --> 00:00:58,536 there. And if I press the back arrow key I move 12 00:00:58,536 --> 00:01:03,496 to the left, if I press the right arrow key I move to the right, and wherever I 13 00:01:03,496 --> 00:01:10,308 am the characters get inserted. It's just like the simple editor you'd 14 00:01:10,308 --> 00:01:13,849 have on your phone maybe to send text messages. 15 00:01:15,710 --> 00:01:20,132 And just to be clear about, what happens with the argument to main, let me restart 16 00:01:20,132 --> 00:01:26,919 it now. I'll say main, make editor, dog, cat, 17 00:01:26,919 --> 00:01:34,056 starting at position, 3. And this editor starts out with the 18 00:01:34,056 --> 00:01:39,254 string, dog cat. And the cursor starts out at position 3. 19 00:01:39,254 --> 00:01:45,884 Remember, we're using 0-based indexing, so to the left of the D is 0, 1, 2, 3. 20 00:01:45,884 --> 00:01:54,106 And then we can edit from there. And of course, dog, cat, I don't know, 21 00:01:54,106 --> 00:01:56,680 mouse. Do those go together? 22 00:01:56,680 --> 00:01:59,891 Who knows. When we close this, the final result the 23 00:01:59,891 --> 00:02:03,290 big bag produces is the final world's day. 24 00:02:03,290 --> 00:02:07,820 So that's a quick little demo of what the editor is supposed to do. 25 00:02:07,820 --> 00:02:10,700 We hope that this will answers most of your questions about what we're asking 26 00:02:10,700 --> 00:02:12,000 you to design.