#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
請問需要加等號嗎?為什么運行結果都對呢?
海綿寶寶撒
2019-10-10 16:09:02