Sheben, ну если нужно с параметром, то можно так:
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
28
29
30
31
32
| class Komplecs
{
private:
int a, b;
public:
Komplecs()
{
a = 0;
b = 0;
}
Komplecs(int number)
{
a = number;
b = number;
}
Komplecs(int _a, int _b)
{
a = _a;
b = _b;
}
~Komplecs()
{
}
void Vvod();
void Slog();
void Umnog();
void Vich();
}; |
|