Use of exit() function

后端 未结 13 1431
离开以前
离开以前 2020-11-30 23:34

I want to know how and when can I use the exit() function like the program in my book:

#include

void main()
{
    int goals;
            


        
13条回答
  •  悲哀的现实
    2020-11-30 23:41

    Try using exit(0); instead. The exit function expects an integer parameter. And don't forget to #include .

提交回复
热议问题