#include int k=0; queue q; scanf_s("%d",&k); q.push(k); 数组就是int test[50]; int i=0,j=0; while(1){ scanf_s("%d",&j); if(j==0) break; test[i++]=j; }