implement queue by array in C
little change