title: I have a lot of error with .append method in c++
body: <p>I have a problem with .append methon in C++.
  This is my code:</p>
  <pre><code>#include&lt;iostream&gt;
  #include&lt;string&gt;
  using namespace std;
  int main(){
  char caratteri[] = {&quot;ciao amici&quot;};
  string str = &quot;ciao amici&quot;;
  string token = &quot;&quot;;
  for(int i = 0; i&lt;str.length(); i++)
  {
      if(str[i+1] == ' '){
          token = &quot;&quot;;
      }
      char current_token = str[i];
      token.append(string(current_token));
      i++;
  }
  }
  </code></pre>
  <p>And this is a part of my output:</p>
  <pre><code>    c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\basic_string.h:397:7: note:   no known                             conversion for argument 1 from 'char' to 'const std::__cxx11::basic_string&lt;char&gt;&amp;'
  c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\basic_string.h:389:7: note: candidate: std::__cxx11::basic_string&lt;_CharT, _Traits, _Alloc&gt;::basic_string(const _Alloc&amp;) [with _CharT = char; _Traits = std::char_traits&lt;char&gt;; _Alloc = std::allocator&lt;char&gt;]
         basic_string(const _Alloc&amp; __a) _GLIBCXX_NOEXCEPT
         ^~~~~~~~~~~~
  c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\basic_string.h:389:7: note:   no known conversion for argument 1 from 'char' to 'const std::allocator&lt;char&gt;&amp;'
  c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\basic_string.h:380:7: note: candidate: std::__cxx11::basic_string&lt;_CharT, _Traits, _Alloc&gt;::basic_string() [with _CharT = char; _Traits   = std::char_traits&lt;char&gt;; _Alloc = std::allocator&lt;char&gt;]
         basic_string()
     ^~~~~~~~~~~~
  </code></pre>
  <p>Why have I got this problem? Can I solve it?
  Thank you very much :)</p>