Pass-by-Reference and Pass-by-Value
Hi, im new to c++ and just finished a course, i passed, but noticed i struggled with functions, and i was wondering if you can help me with this exercise that a friend suggested
Write a user friendly program that converts a time from milliseconds to hours : minutes : seconds format. The program should contain:
a. An input function that prompts the user for a time expressed as an integer number of milliseconds. Use a value-returning function for this.
b. A function that computes the time in hours, minutes and seconds from the number of milliseconds.
Use a void function with one pass-by-value parameter for the number of milliseconds and three pass-by-reference parameters for hours, minutes and seconds respectively.
c. An output function that displays the properly formatted time as hh:mm:ss.sss. This should be a void function that accepts hours, minutes and seconds as arguments.