alice21
I am not saying this to be rude or put you off, but you seem to be:
• ignoring forum etiquette (spamming multiple forums and posts for the same problem)
• asking others to do work for you (posting an assignment and the basic shell of a program
given you by your professor)
Grown-up people aren’t typically interested in doing other people’s work for them.
People who frequent forums typically like to do so because they want to help others succeed. Not because they are too bored to figure out stuff they can do on their own time.*
For something quick I wrote: if (words[row][col] == 'a' || words[row][col] == 'e' || words[row][col] == 'i' || words[row][col] == 'o' || words[row][col] == 'u')
I have not worked on trying to shorten this yet, but I am open to any suggestions.
C++ containers (including strings) are designed around these kinds of algorithms. You could do the same thing with, say, a std::vector.
1 2 3 4 5 6 7
std::vector<int> primes{ 2, 3, 5, 7, 11, 13, 17 };
int n = 12;
if (std::find( std::begin(primes), std::end(primes), n ) != std::end(primes))
std::cout << n << " is PRIME\n";
else
std::cout << n << " is NOT prime\n";