#include
void queue(int head, int tail, int *ranks);
int main(){
int ranks[100] = {4,5,0,6,8,1,3,9,7,2};
int head = 0;
int tail = 10;
queue(head, tail, ranks);
}
void queue(int head, int tail, int *ranks){
char more = '\0';
int new = 0;
while(head < tail){
printf("----------------%d-------------------\n", ranks[head]);
head++;
printf("Add Element?[y/n] \n");
scanf(" %c", &more);
if(more == 'y'){
printf("New Number:\n");
scanf(" %d", &new);
ranks[tail] = new;
tail++;
}
}
}