Hello everyone;
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.
Best regards.
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
AuburnMathTutor 37 Junior Poster
Aranarth 126 Posting Whiz in Training
jonsca commented: Agreed +4
ssmg 0 Newbie Poster
Aranarth 126 Posting Whiz in Training
AuburnMathTutor 37 Junior Poster
Aranarth 126 Posting Whiz in Training
AuburnMathTutor 37 Junior Poster
mrnutty 761 Senior Poster
jonsca commented: I like it. +4
ssmg 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.