时分秒这儿有点不懂
1. 通过cin输入两个时,分,秒数据。计算出每一时,分,秒距离0时0分0秒的总秒数。并求两个总秒数差的绝对值
#include <iostream>
using namespace std;
int main()
{
int s,f,m,s1,f1,m1,sum1,sum2,bad;
cout<<"请输入6个整数:"<<endl;
cin s,f,m,s1,f1,m1;
sum1=s*3600+f*60+m;
sum2=s1*3600+f2*60+m2;
dan=sum1-sum2;
cout<<"The sum1 of "<<s<<" , "<<f<<" and "<<m<<" is:"<<sum1<<endl;
cout<<"the sum2 of"<<s1<<","<<f1<<"and"<<m1<<"is"<<sum2<<endl;
cout<<"the bad of"<<sum1<<","<<sum2<<"and"<<"is"<<bad<<endl;
return 0;
纠正一下,谁帮我,,,才上几节课,,,什么都不懂