Compare commits

3 Commits
Author SHA1 Message Date
turtschinba100320 83de6ef49e merge upstream 2025-10-22 15:59:23 +00:00
Bastian 3c89c51854 Pointer auf Textdokument erzeugt 2025-10-22 15:07:46 +02:00
Bastian~ 684ed5e821 Test 2025-10-14 15:07:46 +02:00
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ int main(int argc, char *argv[])
// Check if all words were successfully placed // Check if all words were successfully placed
// Start the game if successful // Start the game if successful
// error message if some words couldn't be placed // error message if some words couldn't be placed
printf("HAllo");
} }
else else
{ {
+6
View File
@@ -8,5 +8,11 @@
// Read words from file and store in 'words' array // Read words from file and store in 'words' array
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
{ {
//Erstellt Pointer auf textdokument
FILE *textdokument = fopen("words.txt", "r");
if (file == NULL) {
printf("words,txt konnte nicht geoffnet werden");
}
// ToDo 2D char Array um wörter zu speichern
} }