kommentare bei mac

This commit is contained in:
2025-10-27 14:27:18 +01:00
parent d61e703a42
commit d5587ef787
4 changed files with 6 additions and 102 deletions
BIN
View File
Binary file not shown.
+6 -6
View File
@@ -41,17 +41,17 @@ int main(int argc, char *argv[])
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords == wordCount)
if (placedWords == wordCount) //überprüfung: alle wörter im gitter
{
printf("All words have been placed successfully.\n");
// Start graphical game
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800); //header datei wird ausgeführt
}
else
{
fprintf(stderr, "Error: Only %u out of %u words could be placed.\n", placedWords, wordCount);
fprintf(stderr, "Try reducing the number or length of words.\n");
exitCode = EXIT_FAILURE;
fprintf(stderr, "Error: Only %u out of %u words could be placed.\n", placedWords, wordCount); //fprintf in selbst gewählter ausgabe
fprintf(stderr, "Try reducing the number or length of words.\n"); // std err = error
exitCode = EXIT_FAILURE; //exit_failure von der stdlib eine funktion => fehler beim ausführen; wert = 1
}
Binary file not shown.