speeds: 3.9 38.2 18.6
distances: 0.4 10 2.5
time: 00:06:09.2
time : 00:15:42.4
time : 00:08:03.9
Total time : 00:29:55.5
but i dont know how to get the last digets to be 09.2 or 03.9
User Profile
Collapse
-
-
what about if it is for calculating time... say for instance
i get this...
3:4:24.2
but i need 03:04:24.2?
sorry im really bad atm.. iv only started learning!Leave a comment:
-
How can i have the output in double digits
Hey... im new to c++ and im trying to write a program but am having difficulty trying to figure out how i can make my output have double digets even when it is 8 eg be 08.
i think its got somthing to do with a combination of setw, setfill and setprecision.
Please Help someone!
Laura
No activity results to display
Show More
Leave a comment: