you print it as for example
[code=cpp]
int* intPtr;
intPtr=new int;
if(intPtr==NULL )
cout<<" Memory allocation fail. \n"
exit(1);
}
[/code]
if your program can not locate a memory then your program will stop
Last edited by sicarie; Jul 20 '07, 07:02 PM.
Reason: Code tags
Comment