From 0eb3a3f1a62b7d3dbc85f6bf000c2fa128851960 Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 17:25:26 +0100 Subject: [PATCH] 25 Nachfrage optimiert --- src/main/c/TicTacToe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/c/TicTacToe.c b/src/main/c/TicTacToe.c index ed21c57..8f3df43 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -105,8 +105,10 @@ int mainx() { printf("Spieler 1 gebe das Feld an wo du dein X setzen willst.\n"); } else printf("Spieler 2 gebe das Feld an wo du dein O setzen willst.\n"); - printf("[Reihe Spalte]:"); - scanf("%d %d"); + printf("Reihe:"); + scanf("%d", &row); + printf("Spalte:"); + scanf("%d", &col); row -= 1; col -= 1; Zuege(Feld, row, col);