char * ptr = new char[10]; cin >> ptr; //вводим abcdefghijklmn - 14 символов cout << ptr; //выводит abcdefghijklmn