Ok, let see:
Originally Posted by quzah
for each letter in the source string ... ok, how do I do that?
#1 The source string is char str;
#2 Since is for each letter I need to create a for loop
#3 The int i; is the letter and the i++ is for each letter
#4 The str[i] != '\0' is for stopping the loop when the word is at the end of the string
if this letter is a vowel ... ok how do I do that?
for(i=0; str[i] != '\0'; i++)
#1 To find if the letter is a vowel I need to compare each character with the other vowel string
#2 To do that I need to create a nested for loop which is:
#3 Where the int j; is the vowel, j++ is each vowel and the str[j] != '\0' is for stopping the loop when the word is at the end of the string
for(j=0; strv[j] != '\0'; j++)
#4 Now each time the loop is working it should make the comparison with the vowels. For doing that you need to create an if statement in this case:
else do the opposite of whatever (star/space) ... ok how do I do that?
if (str[i] == strv[j])
#1 For that I create an else statement:
So what's wrong?