用你这种方法也可以,但这种方法好像较容易理解。。。。。。呵呵 望采纳
```cpp
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int a,b,c,d,e,f,g,h;
cin>>a>>b>>c>>d;
e=a*60+b;
f=c*60+d;
f=f-e;
g=f/60;
h=f-g*60;
cout<<"time="<<g<<" "<<h<<endl;
system("pause");
return 0;
}
```
by mzq979172779 @ 2017-06-17 17:29:18
你这个0分
by Partrick_Star @ 2017-07-03 22:02:00