Converting

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.
number_of_hours*3600 + number_of_minutes*60 + number_of_seconds
Topic archived. No new replies allowed.