#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
請問需要加等號嗎?為什么運行結果都對呢?求指導!
慕的地6264312
2019-10-16 10:24:05