ight brace matches:
Aha! The right brace pairs up with the opening brace of the while loop, not the opening brace of Insert(). In other words, there is a right brace missing somewhere in the loop. A little inspection reveals that it is the closing brace of the second else.
Many editors will display different items in a program source file according to a syntax color code. In the examples here, all types, e.g. int, have been displayed in green, all executable operations such as if in yellow, all variable names in black, and so on. We got this from vim by typing
It is a popular feature in many programmer-oriented editors.
After you become adept at using the various tricks in a given editor, say vim, why let all that go to waste in your other editing tasks, e.g. e-mail? It makes good sense to use the same editor for all your work.
Thus it would be nice to have whatever editor you use for programming work, say vim, as your default editor in your e-mail utility, say pine. That means that whenever your compose a new e-mail message or reply to one you receive, your e-mail utility will automatically invoke vim for your editing pleasure.
I personally use the mutt e-mail utility, and I strongly recommend it. But most of you use pine, so here is how to make vim your default editor in pine: When your first invoke pine, first choose S (Setup), then C (configure. Scroll through the choices there until you get to enable-alternate-editor-implicitly; there just type x and an X will appear in the box. (If you check the wrong box by mistake, just type x again to make it disapear.) Then continue to scroll though the choices until you come to "editor". At that point choose C (Change Val) and type vim. Then choose E (Exit Config) and answer y when asked whether to Commit. From this point on, vim will automatically pop up whenever you compose a new message or reply to an existing one. When you are done composing your message, simply exit vim with ZZ and then send the message as usual.