forked from schroederen/info2Praktikum-Wortsalat
...
This commit is contained in:
parent
9e3c8e697d
commit
79a20ce714
@ -32,7 +32,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
|||||||
// Wort kopieren und in Großbuchstaben umwandeln
|
// Wort kopieren und in Großbuchstaben umwandeln
|
||||||
strcpy(words[wordCount], token);
|
strcpy(words[wordCount], token);
|
||||||
for (int i = 0; words[wordCount][i] != '\0'; i++) {
|
for (int i = 0; words[wordCount][i] != '\0'; i++) {
|
||||||
words[wordCount][i] = toupper((unsigned char)words[wordCount][i]);
|
words[wordCount][i] = toupper((unsigned char) words[wordCount][i]);
|
||||||
}
|
}
|
||||||
wordCount++;
|
wordCount++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,6 +43,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
// Start the game if successful
|
// Start the game if successful
|
||||||
startGame(wordSalad,SALAD_SIZE,words,wordCount,SALAD_SIZE);
|
startGame(wordSalad,SALAD_SIZE,words,wordCount,SALAD_SIZE);
|
||||||
|
// welche Variable wird für windowWidth gewählt?
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user