Juego de naves
int main() { int x, y; char c; cin >> x >> y; cin >> c; while (c == ' ' || c == '\n') cin >> c; if (c == 'n' || c == 'N') { cout << "(" << x << "," << y - 1 << ")" << endl; } if (c == 's' || c == 'S') { cout << "(" << x << "," << y + 1 << ")" << endl; } if (c == 'e' || c == 'E') { cout << "(" << x + 1 << "," << y << ")" << endl; } if (c == 'o' || c == 'O') { cout << "(" << x - 1 << "," << y << ")" << endl; } return 0; }