I'm trying to deal with this problem,
I need to create a code that will accept
'vocals' - (a,e,i,o,u) will create a file named
'vocals.dat' saving the vocals on it.
this is what I got, but still having errors:
void main()
{
char vocal [MAX];
int sum = 0;
int i = 0;
char indicator = 'y';
puts ("Enter characters a-e-i-o-u");
do
{
cout<<"enter a vocal:";
cin>>vocal ;
++i;
sum+=vocal;
cout<<"Another? yes or no (y/n)";
cin>>indicator;
}
while (indicator =='y');
cout<<"characters will be saved";
fputs("vocals.dat);