Weekly C++ Programming Challenge

By Dan Fiscus for Mrs. Fobes' Class

This week's challenge:

The '\b' character in C++ allows you to backspace the last character in the output stream. For example:

cout << "Hello, world!\b" << endl;
would output Hello, world to the console (notice the missing exclamation point). Your task is to create a program that inputs a string of 10 characters or less from the user and outputs it to the console, then removes it character by character until the screen is blank again. You must only delete the exact number of characters that the user inputted.

Hints:

REMEMBER: You are encouraged to do research but if you simply Google this challenge and copy and paste a code sample from online you will not get credit for this.

The solution will be posted on this page in a few days.

If you have any questions, please send Dan and Mrs. Fobes an email using the fancy button right next to these words. Fancy Email Button - Click here