If you have some questions please send me an email at jakerpomperada@yahoo.com and jakerpomperada@gmail.com.
Sample Program Output
Program Listing
#include <iostream>
#include <ctype.h>
using namespace std;
int main() {
string text_me;
char reply;
do {
cout << "\n\n";
cout << "\t========================\n";
cout << "\t REMOVE VOWELS PROGRAM\n ";
cout << "\t========================\n";
cout << "\n";
cout << "\tEnter a String :=> ";
getline(cin,text_me);
cout << "\n\n";
cout <<"\tORIGINAL TEXT :=> " << text_me;
for (int i=0;toupper(text_me[i])!='\0';i++)
{
if (toupper(text_me[i])==toupper('a')
|| toupper(text_me[i])==toupper('e')
|| toupper(text_me[i])==toupper('i')
|| toupper(text_me[i])==toupper('o')
|| toupper(text_me[i])==toupper('u'))
{
text_me[i]=' ';
}
}
cout << "\n\n";
cout <<"\tVOWEL REMOVE TEXT :=> " << text_me;
cout << "\n\n";
cout << "\t Do You Want To Continue Y/N :=> ";
cin >> reply;
} while(toupper(reply)=='Y');
cout << "\n\n";
cout << "\t === THANK YOU FOR USING THIS PROGRAM ===";
cout << "\n\n";
return 0;
}
No comments:
Post a Comment