if i am in a function and want to exit the program without returning to main, howz that possible?
if i am in a function and want to exit the program without returning to main, howz that possible?
Use the exit function. Prototyped like this:
Its in the standard library header.Code:void exit( int status );
#include <stdlib.h> // old c style include
#include <cstdlib> // current c++ style include
Have a wonderful day.... and keep smiling... you look terrific that way
signing off...
shiv... as i know him