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