Posts: 32 Location: US Joined: 13.04.09 Rank: Newbie
Posted on 22-01-11 23:47
Your setting the values of HourSeconds, MinuteSeconds, and Seconds1 before you get the correct information from the user. You have to do those calculations after you get the user's input.
In C++ the compiler allows you to operate on non initialized variables. The value in those variables is just whatever happens to be in memory when the variables are created. That's why you are getting an answer, but not the answer you're looking for.