#include "stdafx.h"#include <iostream>#include <ctime>using namespace std;int _tmain(int argc, _TCHAR* argv[]){ int h, m, s, km; cin >> h; cin >> m; cin >> s; cin >> km; if (km == 0) return 1; //Мы же не хотим, чтобы самолёт ушёл "в исключение"? struct tm seconds; __time64_t long_time; _time64( &long_time ); _localtime64_s(&seconds, &long_time); cout << "Recommended speed: " << km / ((h + m / 60 + s / 3600) - (seconds.tm_hour + seconds.tm_min / 60 + seconds.tm_sec / 3600)) << " km/h" << endl; char c; cin >> c; return 0;}