#include <iostream>
using namespace std;
struct time {
int hours, minutes, seconds;
};
int main () {
time t1;
cout << "Enter hours: ";
cin >> t1.hours;
cout << "Enter minutes: ";
cin >> t1.minutes;
cout << "Enter seconds: ";
cin >> t1.seconds;
long totalsecs = t1.hours*3600 + t1.minutes*60 + t1.seconds;
cout << "\nTime by seconds = " << totalsecs;
system ("pause");
return 0;
}تم تعديل هذه المشاركة بواسطة HGB في 6 أغسطس 2009 في 01:37
أستغفر الله العظيم الذي لا إله إلا هو الحي القيوم وأتوب إليه