is there any way for exit(1)

gfx art xgrafix@gmail.com
Tue Mar 24 22:43:00 GMT 2009


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



More information about the Gcc-help mailing list