I'm trying to do something which I'm not sure if it is available in c++. Actually, I'm developing a game with functions.And to reset the game when the user presses a button or a certain event occurs, the program must start running from all over, say from the very first line of the code. Is it possible to go back some number of lines while keeping the global constants,func.declarations intact, or simply start running from the scratch? Although I'm developing a game, I posted this thread here in c++, because I thought it was more relevant to c++ then games development.
Thank you for your valuable answers.