-
exit()
Hey everyone,
I read this line of code in a book:
Code:
if (denominator == 0)
{
cout << "Illegal fraction: division by 0";
exit(1);
}
and I was just wondering what exit(1) does? I mean I understand from using the code that it exits out of the function before it's done...but what exactly is it doing under the hood? Any insight is always cool, there are probably a lot more people w/ more urgent topics :)
peace, Chap
-
-
-
You're welcome. Those two sites are chock full of reference material for C++ functions.