@ZaMaZaN4iK
Мой лучший друг-отладчик!
164 / 164 / 9
Регистрация: 24.06.2012
Сообщений: 662
|
06.07.2012, 17:17
|
|
Вот, держи:
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| // nomer1.cpp: главный файл проекта.
#include "stdafx.h"
#include <conio.h>
#include <stdio.h>
#include <iostream>
#define maxline 4
using namespace::std;
void time(int i,int o)
{
printf("Time: ");
cout<<i<<':'<<o;
}
int main()
{
int a,s;
printf("Enter the number of hours:");
cin>>a;
printf("Enter the number of minutes:");
cin>>s;
time(a,s);
getch();
} |
|
2
|