title: C++ compiler error - 'No matching function for call...'
body: <p>I am trying to ascertain the reason behind this compiler error which is 'No matching function call to address::set_street(); Any advice would be much appreciated - thanks</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
      class address {
  
      public:
  
          address();
  
          void set_street(string street) {
              streetname = street;
          };
  
  
          string  get_street() {
              return streetname;
          };  
  
  
          void    set_parish(string parish) {
              parishname = parish;
          }
  
          string  get_parish() {
              return parishname;
          }
  
          void    set_country(string country) {
              countryname = country;
          }
  
          string  get_country() {
              return countryname;
          }
  
  
      private:
          string streetname;
          string parishname;
          string countryname;
      };
  
  
      int main(int argc, char* argv[]) {
  
          system("color 0c");
  
          address enteredaddress;
  
              cout&lt;&lt;"Enter street name" &lt;&lt;endl &lt;&lt;endl;
  
          cin &gt;&gt;enteredAddress.set_street();
  
          cout&lt;&lt; endl;
  
  
              system ("pause");
  
          return 0;
  
      }
  </code></pre>