class="language-c++ highlighter-rouge"><span class="n">printf</span></code>. C++ strings use the <code class="language-c++ highlighter-rouge"><span class="n">string</span></code> class, older code uses the C-style <code class="language-c++ highlighter-rouge"><span class="kt">char</span><span class="o">*</span></code>.  Prefer the modern C++ way.</p>

    <div class="language-c++ bad col-sm-6 highlighter-rouge"><div class="highlight"><pre class="highlight"><code>  <span class="c1">// old school</span>
  <spa