1 #include <iostream>
 2 
 3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 4 using namespace std;
 5 
 6 class Time
 7 {
 8     public:
 9         int hour;
10         int minute;
11         int sec;
12 };
13 
14 int main(int argc, char** argv) {
15     Time t1;
16     cin>>t1.hour;
17     cin>>t1.minute;
18     cin>>t1.sec;
19     cout<<t1.hour<<":"<<t1.minute<<":"<<t1.sec<<endl;
20     return 0;
21 }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2021-12-03
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-09-05
  • 2021-12-01
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案