cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Converting
Converting
May 11, 2016 at 4:47pm UTC
btovar
(1)
Can someone help me with the following question:
Write a C++ function that converts hours, minutes, and seconds to total number of seconds. The hours, minutes, and seconds should be supplied as arguments. The function should return the total number of seconds.
May 11, 2016 at 5:36pm UTC
Moschops
(7244)
number_of_hours*3600 + number_of_minutes*60 + number_of_seconds
Topic archived. No new replies allowed.