+ 2
What does exit failure do? (in C++)
We want to read a header and check that the program managed to read it. So we have this code : if (f_in.fail()) { cerr<<"error"; f_in.close(); exit(EXIT_FAILURE); } What does this last line do? Thank you!
3 Respostas
+ 5
@Lena, You're welcome, glad it helps : )
+ 2
Okay thank you! 👌😊