1234567891011121314151617181920212223242526272829
void inputs(int board[x][y]) { int coord1 = 0; int coord2 = 0; int go; cout << "Now, let's play! Enter any input to start." << endl; cin.clear(); cin.ignore(1000, '\n'); cin >> go; system("cls"); do { //cout << "X-Coordinate: "; cin.ignore(1000, '\n'); cin.clear(); cin >> coord1; if(coord1 == 100) break; // cout << "Y-Coordinate: "; cin.ignore(1000, '\n'); cin.clear(); cin >> coord2; board[coord2-1][coord1-1] = 1; print(board); }while(coord1 != 100); }