This has got to be the simplest question on here but it's driving me nuts, I'm making slow progress with cocoa and objective c and Im making a simple timer I want to add the hours, minutes and seconds together to get the total number of seconds
So I have 3 Ints, Hours, Min, Sec and want to do this:
int totalSec = (((Hours x 60) x 60) + (min x 60) + sec);
but keep getting errors no matter how I try to reformat it, is there no way to do this without splitting each sum somehow
thanks in advance!
So I have 3 Ints, Hours, Min, Sec and want to do this:
int totalSec = (((Hours x 60) x 60) + (min x 60) + sec);
but keep getting errors no matter how I try to reformat it, is there no way to do this without splitting each sum somehow
thanks in advance!