I am a begginer also but I believe you need main to be declared as
int main()
The line
char vowels[]={a,e,i,o,u};
isn't needed.
I would put
char n;
inside int main().
For your branching statement you would declare each of the vowels in the condition statement i.e.
if (n == 'A' || n== 'a' || n == 'E' || ect...)
It would probably be a lot easier to use a switch statement though. i.e.
switch (n)
{
case 'A':
case 'a':
case 'E':
case 'e':
case 'I':
case 'i':
case 'O':
case 'o':
case 'U':
case 'u':
{
cout << "This letter is a Vowel." << endl;
break;
}
default:
{
cout << "This letter is a consonant." << endl;
}
}
Only problem with this is that if someone enters something that is not an alphabet it will be considered a consonant.