title: C++: Print only one char
body: <p>When I read one <code>char*</code> from <code>std::cin</code> and I want to write it to <code>std::cout</code>, it prints until it finds a <code>\0</code> in memory. So what did was:</p>
  
  <pre><code>char c;
  cin &gt;&gt; c;
  char* pChar = &amp;c;
  pChar++;
  *pChar = '\0';
  println(&amp;c); // My own method: void println(char * str) { cout &lt;&lt; str &lt;&lt; endl; }
  </code></pre>
  
  <p>But I don't think this is a safe action.</p>
  
  <p>Is there a safer way to do this?</p>