C++ setprecision : <p>newbie learning C++ and not understanding the problem I have trying to use setprecision(2) says setprecision(2) is undefined. If anyone could help I'd be most grateful.</p>

<pre><code> #include &lt;iostream&gt;     
 #include &lt;string&gt;
using namespace std;

int main() 
{
double price,shipping;

cout&lt;&lt;"Enter total price of of the order: "&lt;&lt;endl;
cin&gt;&gt;price;

if(price &gt; 75) 
    shipping = 0;
else if(price &gt; 50) 
    shipping = 5;
else if(price &gt; 25)
    shipping = 10;
else if(price &gt; 0)
    shipping = 15;

cout&lt;&lt;"Total price of order including shipping is: "&lt;&lt;fixed&lt;&lt;setprecision(2)
    &lt;&lt;price + shipping&lt;&lt;endl;





return 0;
system("pause");
}
</code></pre>
