Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~570 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for rookieNeedsHelp

I have running totals of int minutes and int seconds and I can display them as mmm:sss, but I need to convert them into hh:mm:ss. Any ideas? Thanks in advance for your help.

Member Avatar for rookieNeedsHelp
0
310
Member Avatar for rookieNeedsHelp

How can I convert a string into an integer? I tried this: totalMins += atoi(MovieRecord->getMinutes()); Which I think only works for C-strings, and I tried this: totalMins += static_cast<int>(MovieRecord->getMinutes()); which I think only works for converting an int to a double or something similar.

Member Avatar for rookieNeedsHelp
0
260