From 51683ecbbc9b6cf27861b4addf5175cc446ef6d2 Mon Sep 17 00:00:00 2001 From: Simon Hildebrandt Date: Wed, 7 Feb 2024 18:07:06 +0100 Subject: [PATCH] =?UTF-8?q?32=20Z=C3=BCge=20X=20optimiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 983e125..beda977 100644 --- a/src/main/c/TicTacToe.c +++ b/src/main/c/TicTacToe.c @@ -89,8 +89,10 @@ void Zuege(char Feld[3][3], int row, int col) { } else { printf("Das Feld ist schon besetzt. Gib ein anderes Feld ein:\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);