title: sprintf not declared in scope?
body: <p>I have a small snippet of code here from something I designed but I keep getting the error :</p>
  <pre><code>sprintf not declared in scope 
  </code></pre>
  <p>Do I include something in the #includes or how can I get this working? I was working on it on VS at my mom's but came home and I can't get it on code blocks</p>
  <pre class="lang-cpp prettyprint-override"><code>if (tmp2 &lt;= B_dest[hr - 6])
  {
      sprintf(name, &quot;B%d&quot;, tmp3);
  }else{
      sprintf(name, &quot;A%d&quot;, tmp3);
  }
  </code></pre>