diff --git a/Start_Windows/game.o b/Start_Windows/game.o deleted file mode 100644 index 1db69c1..0000000 Binary files a/Start_Windows/game.o and /dev/null differ diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 5a54a6c..d690443 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -8,14 +8,12 @@ // Read words from file and store in 'words' array int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { - puts("...."); char puffer[MAX_LINE_LEN]; //Array für eingelesene Zeile int counter = 0; //Zähler für Anzahl eingelesener Wörter int i; while(fgets(puffer, MAX_LINE_LEN-1, file) != NULL && counter < maxWordCount) { - puts(".!!!!!"); char *word_parts = strtok(puffer, ",;\n\t/. "); //Wörter aufteilen while(word_parts != NULL && counter < maxWordCount) @@ -28,33 +26,10 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) for(i = 0; words[counter][i] != '\0'; i++) { words[counter][i] = toupper(words[counter][i]); - printf("%c",words[counter][i]); } - - for(int z = 0; z < maxWordCount; z++) - { - for(int o = 0; o < MAX_WORD_LEN; o++) - { - printf("%c", words[z][o]); - } - printf("\n"); - } - - /* - for(i = 0; i < MAX_WORD_LEN -1; i++) //MAX = 100 - { - words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen - puts("?????????????????"); - printf("%c", word_parts[i]); - if(word_parts[i+1] == '\0') - break; - } - words[counter][i] = '\0'; //Stringdefinition vervollständigen - */ counter++; // Wort eingelesen, Wortzähler erhöhen word_parts = strtok(NULL, ",;\n\t/. "); //NULL für Zeiger angeben } - } return counter; } \ No newline at end of file diff --git a/Start_Windows/input.o b/Start_Windows/input.o deleted file mode 100644 index a8cd3ea..0000000 Binary files a/Start_Windows/input.o and /dev/null differ diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe deleted file mode 100644 index 6cb3a97..0000000 Binary files a/Start_Windows/runTests.exe and /dev/null differ diff --git a/Start_Windows/testwords_delims.txt b/Start_Windows/testwords_delims.txt deleted file mode 100644 index e721fce..0000000 --- a/Start_Windows/testwords_delims.txt +++ /dev/null @@ -1 +0,0 @@ -Hund,Katze; Maus diff --git a/Start_Windows/testwords_empty.txt b/Start_Windows/testwords_empty.txt deleted file mode 100644 index e69de29..0000000 diff --git a/Start_Windows/testwords_simple.txt b/Start_Windows/testwords_simple.txt deleted file mode 100644 index 37d7524..0000000 --- a/Start_Windows/testwords_simple.txt +++ /dev/null @@ -1,3 +0,0 @@ -Apfel -Banane -Kiwi \ No newline at end of file