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

1 Expert Approved Answer
Step: 1 Unlock

ANSWER include using stdcin using stdcout using stdendl ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Principles and Practice Questions!