From 9fc68c1851f0e7d1fe0647b6deeb3be55ce580c3 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Mon, 5 Feb 2024 14:02:23 +0100 Subject: [PATCH] mac-problem solved, hopefully on linux too --- src/main/c/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/c/main.c b/src/main/c/main.c index f3c838d..bda2276 100644 --- a/src/main/c/main.c +++ b/src/main/c/main.c @@ -14,7 +14,7 @@ #include "SchereSteinPapier.h" #include "hangman.h" #include "tictactoe.h" -#include "ASCII_art.h" +#include "Jason/ASCII_art.h" #include "Stefan/slot_machine.h" @@ -41,7 +41,15 @@ void openInterface() "4: Slot Machine\n" "5: ASCII - Art\n"); printf("\nBitte waehle die Zahl des entsprechenden Spiels aus, um damit zu starten.\nAm Ende eines Spiels kannst du mit der Taste 0 wieder zurueck zum Hauptmenue kommen.\nIm Hauptmenue beendest du mit der Auswahl 0 das Programm \n\n"); - scanf("%d", &selection); + #ifdef __APPLE__ + scanf("%d", &selection); + #elif defined(__linux__) + scanf("%d", &selection); + #else + scanf_s("%d", &selection); + #endif + + //todo