Can someone offer assistance in converting seconds to minutes and seconds. :?:
111Help
0
Newbie Poster
Recommended Answers
Jump to PostDivide by 60 and multiply by 60. Nothing to it.
Jump to PostDo you mean something like this:
struct Time { int minutes; int seconds; friend ostream & operator<<(ostream & os, const Time & t) { os << t.minutes << " minutes and " << t.seconds << " seconds" << endl; } } Time timeUsed; Time timeRemaining; timeUsed.minutes = …
All 5 Replies
Narue
5,707
Bad Cop
Team Colleague
111Help
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
111Help
0
Newbie Poster
Lerner
582
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.