title: C++ - syntax for defining/instantiating strings
body: <p>I am very new to C++ and still trying to learn syntax and best practices. </p>
  
  <p>I've defined a method with a single parameter:</p>
  
  <pre><code>void foo(const std::string&amp; name)
  </code></pre>
  
  <p>1) Is this a proper parameter declaration for a function that will be taking in a string defined by the user in, for example, a main method?</p>
  
  <p>2) If this is proper/recommended syntax, what would an instantiation of a sample parameter look like?</p>