I am getting an error for one of my functions and for the life of me I can not figure it out.
int short(Queue a[], int [], int)
{
int short= 0;
for (int i = 0; i < servers; i++) {
if(cash_time[i] == 0 && a[i].length()==0)
return i;
else if (a[i].length() < a[short].length())
short = i;
}
return short
}
The error I am getting is expected ‘)’ before ‘a’; I don't understand why I am getting this error. Please help me out
Aucun commentaire:
Enregistrer un commentaire