Question: Do exercise 7 again, but this time read into a std::string rather than to memory you put on the free store (string knows how to
Do exercise 7 again, but this time read into a std::string rather than to memory you put on the free store (string knows how to use the free store for you).
Data from Exercise 7
Write a program that reads characters from cin into an array that you allocate on the free store. Read individual characters until an exclamation mark (!) is entered. Do not use a std::string. Do not worry about memory exhaustion.
Step by Step Solution
3.37 Rating (169 Votes )
There are 3 Steps involved in it
ANSWER include using stdcin using stdcout using stdendl ... View full answer
Get step-by-step solutions from verified subject matter experts
