#include <iostream>
void format_print(int hours, int minutes);
int main()
{
int hours, minutes;
std::cout << "输入小时数: ";
std::cin >> hours;
std::cout << "输入分钟数: ";
std::cin >> minutes;
format_print(hours, minutes);
return 0;
}
void format_print(int hours, int minutes)
{
std::cout << "Time: " << hours << ":" << minutes << std::endl;
}