forked from freudenreichan/info2Praktikum-Wortsalat
Fehlerfall Wordplazierung
This commit is contained in:
1 parent
93db739464
commit
14c2c5d4f3
1 file changed
+7
@@ -38,7 +38,14 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// Check if all words were successfully placed
|
// Check if all words were successfully placed
|
||||||
|
if (wordCount == placedWords) {
|
||||||
|
|
||||||
|
}
|
||||||
//Start the game if successful
|
//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
|
// error message if some words couldn't be placed
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user