Answer:
Program is as follow:
Step-by-step explanation:
#include<iostream.h>
#include < conio.h>
bool isVowel(char b)
{
return
( b=='a' || b=='A' || b=='e' || b=='E' || b=='i' || b=='I' || b=='o' || b=='O' || b== 'u' || b=='U');
For swaoing the vowels
string reverseVowel ( String str)
{
int j = 0;
string v ;
for ( int i= 0 ; str [i]]!='0'; i++)
if( isv(str[i]))
v[j++] = str[i[;
for ( int i = 0; str[i]! = '0' ; i++
if ( isv (str[i]))
str{i} = v [--j]
return str;
}
int main ()
{ string str = " Programming";
cout<<swapv(str);
return 0 ;
}