// This program uses setw with the cin object. #include #include using namespace std; int main() { const int SIZE = 5; char word[SIZE]; cout << "Enter a word: "; cin >> setw(SIZE) >> word; cout << "You entered " << word << endl; return 0; }