阅读背景:

变量' ' '周围的堆栈被损坏

来源:互联网 
void GameBoard::enterShips()
{
    char location[1];
    int ships = 0;
    int count = 1;

    while(ships < NUM_SHIPS)
    {
        cout << "Enter a location for Ship " << count << ": ";
        cin >> location;
        cout << endl;

        Grid[location[0]][location[1]] = SHIP;
        ships++;
        count++;
    }
}
void GameBoard::enterShips()
{
    char locatio



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: