#includeusingnamespacestd;constintMAXSIZE=100;typedefintElemType;typedefstruct{ElemTypedata[MAXSIZE];intfront;intrear;}SeqQueue;voidInitQueue(SeqQueue&Q){Q.front=Q.rear=0;}voidEnQueue(SeqQueue&Q,ElemTypex){if((Q.rear+1)%MAXSIZE==Q.front){cout
在線等,挺急的!請問需要加等號嗎?為什么運(yùn)行結(jié)果都對呢?各位有什么建議?
DIEA
2019-10-08 08:57:14