title: I'm trying to call void functions in another function, but I don't know how to properly place them
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;fstream&gt;
  #include &lt;iomanip&gt;
  #include &lt;string&gt;
  #include &lt;cmath&gt;
  
  using namespace std;
  
  // these should have all of my declared functions
  
  int start(char x, char y, char z);
  void pim();
  void pmm();
  void login();
  void createa();
  
  //my assignment wants me to have only one function used
  
  int main()
  {
      start(pim(), login(), createa());
  
      return 0;
  }
  
  //This should be the start of the code
  
  void pim()
  {
      cout &lt;&lt; &quot;Please select a letter from the menu below:&quot; &lt;&lt; endl;
      cout &lt;&lt; &quot;l - Login&quot; &lt;&lt; endl;
      cout &lt;&lt; &quot;c - Create New Account&quot; &lt;&lt; endl;
      cout &lt;&lt; &quot;q - Quit&quot; &lt;&lt; endl;
  }
  
  // this is to post a menu after you make the first choice above
  
  void pmm()
  {
      cout &lt;&lt; &quot;d - Deposit Money&quot; &lt;&lt; endl;
      cout &lt;&lt; &quot;w - Withdraw Money&quot; &lt;&lt; endl;
      cout &lt;&lt; &quot;r - Request Balance&quot; &lt;&lt; endl;
      cout &lt;&lt; &quot;q - Quit&quot; &lt;&lt; endl;
  }
  
  //this is to login to the account
  
  void login()
  {
      cout &lt;&lt; &quot;Okay, you're in&quot; &lt;&lt; endl;
  }
  
  // this is to create an account
  
  void createa()
  {
      int id = 0;
      int password = 0;
  
      cout &lt;&lt; &quot;create an ID of two numbers&quot; &lt;&lt; endl;
      cin &gt;&gt; id;
  
      cout &lt;&lt; &quot;Make a password of 4 numbers&quot; &lt;&lt; endl;
      cin &gt;&gt; password;
  }
  
  // Starts and is basically the entire project
  
  int start(char x, char y, char z)
  {
      char pim = x;
      cout &lt;&lt; pim;
  
      int choice = 0;
      char select = '\0';
  
      cout &lt;&lt; &quot;Enter the choice that you want:&quot;;
      cin &gt;&gt; choice;
  
      if(select == 'l')
      {
          choice = 1;  
      }
      else if( select == 'c')
      {
          choice = 2;
      }
      else
      {
          choice = 3;
      }
  
      switch (choice)
      {
          case 1:
              cout &lt;&lt; y &lt;&lt; endl;
              break;
          case 2:
              cout &lt;&lt; z &lt;&lt; endl;
              break;
          case 3:
              exit(0);
              break;
          default:
              cout &lt;&lt; &quot;This is not a command&quot; &lt;&lt; endl;
      }
  
      return 0;
  
  }
  </code></pre>