Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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++
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started