I have a query
First Kindly read this code::
So I am building a c++ text adventure.
I have just started writing my code.
I want this story to have multiple endings
So if you read the last 5-6 lines of the code that are the 2 options that I gave
So if I create a if else statement such as if b==1 then say that the plane crashed.
This message( The plane crashed) will be shown to the user but the story will continue to move forward. But practically if the plane crashed the program should end.
In easy terms: If user selects the wrong option I want the code to end at that particular place and not go further
So what should I do in that code?