Why it stops and finished with exit code 11?

前端 未结 2 568
后悔当初
后悔当初 2021-01-23 07:31

I don\'t know why it stops there and finished with exit code 11. It suppose to run until I give the command.

#include 
#include 
#i         


        
2条回答
  •  清酒与你
    2021-01-23 08:11

    Exit code 11 is not anything specific to the C++ standard. However, on Linux that code is generally used to represent a segmentation fault. Off the top of my head, I don't see anything glaringly wrong other than the fact that you never close the file after you write to it.

提交回复
热议问题