cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Shut off command
Shut off command
Jan 6, 2011 at 12:31am UTC
pcultras
(55)
Is there in c++ something like shut down command?
I mean like for eg when if is included in another loop:
1
2
if
(cd==0)
break
;
just instead of breaking the loop and going on i want the programme to complitely shut off.
Jan 6, 2011 at 12:32am UTC
quirkyusername
(792)
return
Jan 6, 2011 at 12:37am UTC
pcultras
(55)
Thanks man, I'm a real noob and I never knew you could use return 0; to shut off a programme in a loop. Thanks again!
Jan 6, 2011 at 12:17pm UTC
coder777
(8444)
Use
exit(1);
to exit your program (you need to #include <stdlib.h>)
Topic archived. No new replies allowed.