I keep getting this error, although I'm not sure why
"hw3.cpp:7:1: error: expected initializer before 'int'
int num_vow (char ch, int vow){ "
Here's my code:
int main()
int num_vow (char ch, int vow){
while (ch != '!'){
if (ch == 'A' || ch == 'a' || ch == 'E' || ch == 'e' || ch 'I' || ch == 'i' || ch == 'O' || ch == 'o' || ch == 'U' || ch == 'u'){
vow ++;}
cin.get(ch);
}
return (vow);
}
int vow = 0, num_vow(char, int);
char ch;
cout << "Enter lines of text terminated with a '!'.\n";
cin.get(ch);
vow = num_vow (ch, vow);
cout << "There are " << vow << " vowels in the text.\n";
}
return 0;