12345678
const int MAX = 3000; char msg[MAX]; cout << "Enter a sentence"; cin.clear(); cin.width(MAX); cin.getline(msg, MAX);
1234567
const int MAX = ?; char msg[?]; cout << "Enter a sentence"; ...
12345
int size; cout << "How big?"; cin >> size; char* pArray = new char[size];