I would like my C++ code to stop running if a certain condition is met, but I’m not sure how to do that. So just at any point if an if statement is true terminate the code like this:

if (x==1)
{
    kill code;
}

14 Answers
14

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *