On Aug 8, 10:37 am, Michael DOUBEZ <michael.dou...@free.frwrote:
faz a écrit :
i have used exit(1) in my code and included conio.h file also but it
is giving the following..
error C2065: 'exit' : undeclared identifier
Use the following header insted
#include <cstdlib>
In which case he should (according to the current standard) use
std::exit(). For ::exit() (or just plain exit), it's
<stdlib.h>.
(I might add that you generally don't want to use this function
in C++, since it will cause the destructors of local variables
to be skipped.)
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34