is there any way for exit(1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello dear gcc staff

I am trying to use exit(1) to my book exercise to test it
but I can't use it the code will work if I deactivate it

if ( mySize == CAPACITY)
{
     cerr << "No space" << endl;
     exit(1); // I can't use this code when I compile it and I've
included cassert library
}

thank you very much

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux