76 338
Assignments Done
Successfully Done
In May 2019

Answer to Question #15763 in C++ for christian naumann

Question #15763
write a program that finds the vowels in a user inputted string using the function isvowel.
Expert's answer

char S[100];
char *str;

bool isVowel(char a){
if ((a=='a')||(a=='e')||(a=='y')||(a=='u')||(a=='i')||(a=='o')||(a=='o')) return 1;
else return false;

void main(){
cout<<"Enter a string: ";
cout<<"Vowels: ";
str = &S[0];
for (int i=0; i<=strlen(S); i++){
& if (isVowel(*str)) cout<<*str<<' ';
& str++;
& }

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions