Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Abort - Exit the program without exit() function in C++

<code>
//ABORT() FUNCTION
//abort - Exit the program without exit() function
#include<iostream.h>
#include<fstream.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
char *f =" ABORT FUNCTION";
fstream fs;
fs.open("forget.txt",ios::in);
if( fs!= NULL)
{
cout<< f;
}
else
{
cout<<"error opening file";
abort();
}
return 0;
}

</code>