Write C Program Prompts User Input String Program Uses Function Substr Remove Vowels Strin Q37106096

Write a C++ program that prompts the user to input a string. Theprogram then uses the function substr to remove all the vowels fromthe string. For example, if str = “There”, then after removing allthe vowels, str = “Thr”. After removing all the vowels, output thestring. Your program must contain a function to remove all thevowels and a function to determine whether a character is avowel.


Solution


#include<stdio.h>
#include<iostream>
#include<string.h>

using namespace std;

bool isVowel(char txt)
{
   if(txt == ‘a’ || txt == ‘e’ || txt == ‘i’ || txt ==’o’ || txt == ‘u’ || txt == ‘A’ || txt == ‘E’ || txt

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.