C++ hour calculations : <p>how can i write a source code for the calculations of time? For example,the user enter at 2.45 pm and check out at 3.15 . If we use simple mathematics , 3.15-2.45=0.7 . But if we use hour calculations 3.15-2.45=0.3(30minutes) . please help me .</p>
