generated from freudenreichan/info2Praktikum-Wortsalat
Mein Branch gemacht
This commit is contained in:
1 parent
bc1c053b2f
commit
b8dbcee641
2 files changed
+51
-1
No files matched your search
+10
-1
@@ -41,10 +41,19 @@ int main(int argc, char *argv[])
|
||||
// Start the game if successful
|
||||
// error message if some words couldn't be placed
|
||||
|
||||
if(placedWords == wordCount)
|
||||
{
|
||||
//600 Pixel random gewählt, Keine daten dazu gefunden;
|
||||
startGame(wordSalad, SALAD_SIZE, words, wordCount, 600);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "Not all words could be placed ...\n");
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Print error message if file couldn't be opened
|
||||
fprintf(stderr, "Could not open file %s for reading ...\n", argv[1]);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user