So just to give you some help with doing the editor project, this video is just a
quick demo of what the editor should do when its done.
So here I'm in a solutions file, which you'll get after the project is over.
Remember, this is our solution. Your solution will have a similar
structure, maybe not the exact same structure, and should definitely have
this functionality. Let me run it.
And then I'll start it with main of make Editor, but we'll just start it with an
empty string, and of course, in an empty string, it has to be at position 0.
And it pops up a little editor here. Let me move it so you can see it a bit
better. And I can just type in this editor, hello
there. And if I press the back arrow key I move
to the left, if I press the right arrow key I move to the right, and wherever I
am the characters get inserted. It's just like the simple editor you'd
have on your phone maybe to send text messages.
And just to be clear about, what happens with the argument to main, let me restart
it now. I'll say main, make editor, dog, cat,
starting at position, 3. And this editor starts out with the
string, dog cat. And the cursor starts out at position 3.
Remember, we're using 0-based indexing, so to the left of the D is 0, 1, 2, 3.
And then we can edit from there. And of course, dog, cat, I don't know,
mouse. Do those go together?
Who knows. When we close this, the final result the
big bag produces is the final world's day.
So that's a quick little demo of what the editor is supposed to do.
We hope that this will answers most of your questions about what we're asking
you to design.