// FILE: mirror.cc // READS 3 CHARACTERS AND DISPLAYS THEM IN REVERSE ORDER // An example of C++ code. // See page 68, Fig 2.16 of Koffman and Friedman #include int main () { // Local data ... const char border = '*'; // encloses 3 characters char first, second, third; // input/output: 3 characters cout << "Enter 3 characters: "; cin >> first >> second >> third; cout << border << third << second << first << border << endl; return 0; }