title: "Cannot overload functions by return type alone" error
body: <p> I keep getting a "cannot overload functions distinguished by return type alone" when it comes to my function 
  <strong>string processOpen(char name)</strong>
  and I'm not sure why. I've cut the program to just it's basic shell and still no luck. Any help would be greatly appreciated.</p>
  
  <p>The actual visual studio error during compile says
  "missing type specifier - int assumed. Note: C++ does not support default-int.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;fstream&gt;
  
  
  char openCommand();
  string processOpen(char entryReturn);
  bool logIn(string name);
  bool addNewMember(string name);
  void processQuit();
  
  
  //Global Variables
  string memberlist = "memberlist.txt";                                 
  string checkedOutList = "checkedoutbooks.txt";
  
  using namespace std;
  int main() {
  
  char entryReturn = ' ';                                         
  string name;                                                    
  
  while (entryReturn != 'q') {
  
      entryReturn = openCommand();
      name = processOpen(entryReturn);
  }
  
  return 0;
   }
  </code></pre>
  
  <p>the function looks like</p>
  
  <pre><code>string processOpen(char entryReturn) {
  
  bool allReadyThere = false;                                     
  string name = " ";
  
  //This will process the &lt;log in&gt; selection
  if (entryReturn == 'a')
  {
      cout &lt;&lt; "Enter your first and last name" &lt;&lt; endl;
  
      cin.ignore();
      getline(cin, name);
  
      allReadyThere = logIn(name);
  
      if (allReadyThere == false)
      {
          cout &lt;&lt; "You need to register 
         as you don't have an account"        &lt;&lt;        endl;
      }
   }
  
  //This will process the &lt;register&gt; selection
  else if (entryReturn == 'b')
  {
      cout &lt;&lt; "Enter your first and last name" &lt;&lt; endl;
  
      cin.ignore();
      getline(cin, name);
  
      allReadyThere = addNewMember(name);
  
      if (allReadyThere == true) {
          cout &lt;&lt; "you already have an account" &lt;&lt; endl;
      }
  }
  
  else if (entryReturn == 'q') {
  
      processQuit();
  }
  
  else
  {
      cout &lt;&lt; "This is a non working command";
  }
  
  return name;
  }
  </code></pre>
  
  <p>be kind with code I'm still a little new. Thanks in advance.</p>