Stack around the variable ' ' was corrupted

前端 未结 4 1222
孤城傲影
孤城傲影 2021-01-12 10:09
void GameBoard::enterShips()
{
    char location[1];
    int ships = 0;
    int count = 1;

    while(ships < NUM_SHIPS)
    {
        cout << \"Enter a loc         


        
4条回答
提交回复
热议问题