i create a structure called time. Its three members, all type int called hours, minutes, and seconds. This is in 12:59:59 format and i finally want to print out the total number of seconds represented by this time value.
long totalsecs = t1.hours*3600 + t1.minutes*60 + t1.seconds
i am using this formula but facing errors can any one solve it??
long totalsecs = t1.hours*3600 + t1.minutes*60 + t1.seconds
i am using this formula but facing errors can any one solve it??
Comment