Write a program that allows the user to enter a start time and a future time. Include a function named ComputeDifference that takes the six variables that represent the start time and future time.Your function should return, as an int, the time.

Was that exactly how the problem was given to you? As posted the requirements are ambiguous. What exactly does it mean by "six variables ...
"? Are they strings, integers, structures, or something else? And the return value -- is it supposed to be in milliseconds, seconds, minutes, hours, days, months, years, decades, centuries, etc. ? And what if the two times span two or more days?

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.