Solution Found!
The program in Exercise P7.13 is limited by the fact that it can only handle inputs
Chapter 7, Problem P7.14(choose chapter or problem)
The program in Exercise P7.13 is limited by the fact that it can only handle inputs of1,000 characters or 100 lines. Remove this limitation as follows. Concatenate theinput in one long string object. Use the c_str member function to obtain a char* intothe strings character buffer. Store the beginnings of the lines as a vector.
Questions & Answers
QUESTION:
The program in Exercise P7.13 is limited by the fact that it can only handle inputs of1,000 characters or 100 lines. Remove this limitation as follows. Concatenate theinput in one long string object. Use the c_str member function to obtain a char* intothe strings character buffer. Store the beginnings of the lines as a vector.
ANSWER:Step 1 of 2
Concatenate the input in one long string object. Use the c_str member function to obtain a char* into the string’s character buffer. Store the beginnings of the lines as a vector<char*>