我收到一条错误消息,指出"expected primary-expression ';‘token“,它突出显示了我的百分比公式。我试着重新安排我的代码,但问题似乎不在其中。 if ( floor != 13) { cout << "Please enter the number of suites occupied on the floor &
对于第一个错误,我得到了expected primary-expression before "else"错误,但我不明白为什么。我检查了三遍所有的支撑。{ cout << "Would you like to play again? (Y or N) : "; if(restart == 'Y' || res