c++ How to a exit a function that calls itself? :     void function ()
    {
        if (condition)
        {
            do something
        }else if (other condition)
        {
            go back to main()
        }
        function();
    }
In here, this function will always call itself, no mater what I replace 'go back to main()' with. 

    return;
    exit;
    break;
Code above does not work. Can anyone help?