title: C++ cannot convert 'const char*' to 'std::string*'
body: <p>I have this code below and I'm getting the error upon compilation:</p>
  
  <p><code>error: cannot convert 'const char*' to 'std::string*' for argument '1' to 'void sillyFunction(std::string*, int)'</code></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  int counter = 0;
  
  void sillyFunction(string * str, int cool=0);
  
  int main(){
      sillyFunction("Cool");
      sillyFunction("Cooler", 1);
      return 0;
  }
  
  void sillyFunction(string * str, int cool){
      counter++;
      if (cool){
          for (int i=0; i&lt;counter; i++) cout &lt;&lt; *str &lt;&lt; endl;
      } else {
          cout &lt;&lt; *str &lt;&lt; endl;
      }
  }
  </code></pre>