int isEmpty(){ if(Q.front > Q.rear) return 1; return 0; }