Question: I need this in c++ 2. Write a program that will remove all of the white spaces from a given input. HINT: getline and length

I need this in c++
I need this in c++ 2. Write a program that will remove

2. Write a program that will remove all of the white spaces from a given input. HINT: getline and length will be handy to use in this case. (4 points) Example: The input is "Hello World! It's great to be alive" Output is "HelloWorld!It'sgreattobcalive" EXTRA: Write the program using a "for" loop and repeat the program using a "while" loop or "do-while" loop. Both loops can be in the same program. (4 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!