-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path11.cpp
More file actions
42 lines (40 loc) · 877 Bytes
/
11.cpp
File metadata and controls
42 lines (40 loc) · 877 Bytes
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
33
34
35
36
37
38
39
40
41
42
#include<iostream>
#include <string>
using namespace std;
class Index
{
private:
string name;
string street;
int numberD;
int numberK;
string city;
string area;
int index;
public:
Index(string name, string street, int numberD, int numberK, string city, string area, int index)
{
this->name = name;
this->street = street;
this->numberD = numberD;
this->numberK = numberK;
this->city = city;
this->area = area;
this->index = index;
}
void Information()
{
cout << "Name: " << name << endl;
cout << "Street: " << street << endl;
cout << "NumberD: " << numberD << endl;
cout << "NumberK: " << numberK << endl;
cout << "City: " << city << endl;
cout << "Area: " << area << endl;
cout << "Index: "<< index << endl;
}
};
int main()
{
Index I("Ekaterina", "Kavaleriskaya", 16, 238, "Ivanovo", "Ivanovo region", 153013);
I.Information();
}