title: How to make void not return when answer == true
body: <p>I made this program and when I type &quot;yes&quot; it should end my program instead it's waiting for me to say something more and then it comes with my void nottrue(); what should I do to avoid this? Here's my code</p>
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  void CharacterWorld();
  void nottrue();
  
  int main()
  {
      CharacterWorld();
      nottrue();
      return 0;
  }
  
  void CharacterWorld()
  {
      string CharacterName;
      int CharacterAge;
      string yesorno;
      cout &lt;&lt; &quot; Hi, welcome to the Vanish World! &quot; &lt;&lt; endl;
      cout &lt;&lt; &quot; What's your name champion? &quot; &lt;&lt; endl;
      cin &gt;&gt; CharacterName;
      cout &lt;&lt; &quot; ...And what's your age? &quot; &lt;&lt; endl;
      cin &gt;&gt; CharacterAge;
      cout &lt;&lt; &quot; ... So your name is &quot; &lt;&lt; CharacterName &lt;&lt; &quot; and your age is &quot; &lt;&lt; CharacterAge &lt;&lt; &quot; Is that right?&quot; &lt;&lt; endl;
      cin &gt;&gt; yesorno;
      if (yesorno == &quot;yes&quot;)
      {
          cout &lt;&lt; &quot; Okey! so let's start your journey champion!&quot; &lt;&lt; endl;
      }
      else
      {
          cout &lt;&lt; &quot; SO what's your name then ??&quot; &lt;&lt; endl;
          return nottrue();
      }
  }
  
  void nottrue()
  {
      string CharacterName;
      int CharacterAge;
      string yesorno;
      cin &gt;&gt; CharacterName;
      cout &lt;&lt; &quot; and what's your age?&quot; &lt;&lt; endl;
      cin &gt;&gt; CharacterAge;
      cout &lt;&lt; &quot; ...Okey, already. Your name is &quot; &lt;&lt; CharacterName &lt;&lt; &quot; and your age is &quot; &lt;&lt; CharacterAge &lt;&lt; endl;
  }
  </code></pre>