Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Unit 7 Assignment B

Programming Exercise #4 (Chapter 7)


Write a C++ program that prompts the user to input a string. The program then uses the
function substr to remove all the vowels from the string. For example, if str = "There",
the function would remove the 2 e's and output "Thr". Your program needs to contain a
main routine, and a function to remove all the vowels, and a function to determine
whether a character is a vowel.

You might also like