$0.00
: r
$0.01
: e
$0.11
: w
$1.11
: q
$11.11
: x
Process returned 0 (0x0) execution time : 57.650 s
Press any key to continue.
it only displays 4 digits when the integer actually has 4 digits in it, so i guess the padding is what is failing. any insight?
void MCounter::show()
{
double z=double(x)/100;
cout << "$";
cout << fixed << setprecision(2);
cout << setfill('0') << setw(4) << z;
}

New Topic/Question
Reply



MultiQuote




|