forked from freudenreichan/info2Praktikum-Wortsalat
Fehlerfall Wordplazierung
This commit is contained in:
1 parent
93db739464
commit
14c2c5d4f3
1 file changed
+8
-1
+8
-1
@@ -38,7 +38,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
// TODO:
|
||||
// Check if all words were successfully placed
|
||||
// Start the game if successful
|
||||
if (wordCount == placedWords) {
|
||||
|
||||
}
|
||||
//Start the game if successful
|
||||
else {
|
||||
fprintf(stderr,"Error: Only %u of %u words could be placed.\n", placedWords, wordCount);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
// error message if some words couldn't be placed
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user