You still seem very confused on some of the basics.
char words[arraysize];
char, as the the name suggests is a character. a character is the same thing as a letter. If you plan to store words that are longer than one letter, this will not work.
http://www.cplusplus.com/doc/tutorial/variables/
int countVowels(int c)
Remember the requirements?
You need to define a function called countVowel that checks whether a given word has vowels... |
How is this function supposed to know anything about any of the words?
http://www.cplusplus.com/doc/tutorial/functions/
if (c == 'a', 'e', 'i', 'o', 'u')
There are two problems with this line. The first has already been pointed out.
http://www.cplusplus.com/doc/tutorial/operators/
The second is a type mismatch. This might not throw and error, but you will not get the results you expect if it does not. Since c is declared as an int, 'a' and the rest will also get cast to their ASCII values (or the other way around?). Also 'a' and 'A' have different values.
c = isNoVowelWordOnList(c);
Again, you forgot the requirements,
...return the number of vowels in this word. |
Even if everything else worked, this would be wrong.
int isNoVowelWordOnList(int i)
Remember the requirements?
The function isNoVowelWordOnList takes two arguments, the first argument is an array of strings containing a list of words and the second one is the size of this list. |
I would not even worry about this function until you get the rest working.
If I were you, I would just get the main function to the point where it can successfully fill the array of words and print them back to the screen. Once you have that, start working on the first function to count the vowels. When you can do that, you should be able to understand what the last function is supposed to do.