// This program illustrates how to declare, read and write text words - like a file name or a person's // first or last name #include using namespace std; int main() { char TextStringOne[20], TextStringTwo[20]; // declare two text strings cout << " please enter two words" << endl; cin >> TextStringOne >> TextStringTwo; // read in the two words // write out the two words the user entered cout << "Thanks, you entered: " << TextStringOne << " and " << TextStringTwo << endl; // write out the two words in reverse order cout << " In the opposite order: " << TextStringTwo << " and " << TextStringOne << endl; return 0; }