+ 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!

20th Mar 2018, 3:47 PM
Lena
3 odpowiedzi
+ 5
@Lena, You're welcome, glad it helps : )
20th Mar 2018, 7:11 PM
Ipang
+ 2
Okay thank you! 👌😊
20th Mar 2018, 5:05 PM
Lena