Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  1
Language: C/C++
Code:
#include <iostream>
#include <complex> 
time_t secondsCount(size_t hours, size_t minutes, size_t seconds)
{   
    size_t currentTime = (hours - (hours >= 12 ? 12 : 0)) * 60 * 60 + minutes * 60 + seconds; 
    return currentTime;
}
 
int main()
{
    std::cout << std::abs(secondsCount(21,36,11) - secondsCount(16,41,37)) << 'n';
}
          
Comments: