title: std::string vs string in c++
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-a-bad-practice-in-c">Why is &#39;using namespace std;&#39; considered a bad practice in C++?</a><br>
    <a href="https://stackoverflow.com/questions/1265039/using-std-namespace">Using std Namespace</a>  </p>
  </blockquote>
  
  
  
  <p>Ive been hovering around a bunch of different forums and i seem to see this pop up every time and again. Its a very much beginner question.</p>
  
  <p>I usually define a program with</p>
  
  <pre><code>#include&lt;string&gt;
  using namespace std;
  
  string x;
  </code></pre>
  
  <p>I see a bunch of code samples out there who define a string as </p>
  
  <pre><code>std::string.
  </code></pre>
  
  <p>What is the purpose of this? is it good practice or have some functionality?</p>