/*编写一个程序,要求用户输入小时数和分钟数.在main()函数中,将这两个
值传递给一个void函数,后者以下面这样的格式显示这两个值:
Enterthenumberofhours:9
Enterthenumberofmunites:28
Time:9:28 */
#include <iostream>
using namespace std;
void time(int m, int n);
int main()
{
int hour,minute;
cout<<"Enter the number of hour :";
cin>>hour;
cout<<"Enter the number of minute :";
cin>>minute;
time(hour,minute);
return 0;
}
void time (int m,int n)
{
cout<<"time "
<<m
<<" : "
<<n
<<endl;
}