Untitled
unknown
plain_text
3 years ago
429 B
10
Indexable
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
struct tim{
int h;
int m;
int s;
};
int main()
{
int s0;
setlocale(LC_ALL, "Russian");
cout << "введите часы, миуты и секунды";
tim time1;
cin >> time1.h >> time1.m >> time1.s;
s0 = time1.h * 3600 + time1.m * 60 + time1.s;
cout << "Время 1 = " << s0 << "c";
}Editor is loading...