Quote:
Originally Posted by UnKnown X
That's fairly tedious, though. Isn't there a quicker way, aside from the C-style printf()?
|
yeah...at the top of the program justa fter those std headers go:
and then go:
cout << setprecision(1) << x << endl;
an even easier approach is coding your own fraction printing function.