#include int main() { const int MAXCHARS = 81; char message[MAXCHARS], c; cout << "\nEnter a sentence:\n"; int i = 0; while(i < MAXCHARS && (c = cin.get()) != '\n') { message[i] = c; // store the character i++; } message[i] = '\0'; // terminate the string cout << "The sentence just entered is:\n"; cout << message << endl; return 0; }