When reading/writing a file in my application, I want to exit(1) if the file is not closed correctly. On Windows it works well, but on Linux this error appears:
‘exit’ was not declared in this scope
How can I solve that?
Thanks.
When reading/writing a file in my application, I want to exit(1) if the file is not closed correctly. On Windows it works well, but on Linux this error appears:
‘exit’ was not declared in this scope
How can I solve that?
Thanks.
I added cstdlib.h and it didn't work, But by stdlib.h it worked. Thanks very much