Write a recursive function, vowels, that returns the number of vowels in an array of characters.
#include <iostream>
using namespace std;
bool check_vowel(char c);
int vowels(char name[], int size);
int main()
{
int Num = 0;
cout << "Please enter a number : ";
cin >> Num;
check_vowel( Num );
return 0;
}
if (check_vowel(name[size-1]))
return 1 + vowels(name, size-1);
else
return vowels(name, size-1);
}
else
{
cout << "Error";
return -1;
}
}مأدري مأني متأكده في الكود صح ولا في اشياء لازم اصححه
الله يسعدكم الي يعرف يساعدني

