-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompany.cpp
More file actions
45 lines (38 loc) · 828 Bytes
/
Company.cpp
File metadata and controls
45 lines (38 loc) · 828 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
43
44
45
#include "Company.h"
//void Directory::setFirmName(string s)
//{
// int lenght = s.size();
// lenght = (lenght < 14) ? lenght : 14;
// for (int i = 0; i < lenght; i++)
// FirmName[i] = s[i];
// FirmName[lenght] = '\0';
//}
string Company::getFirmName()
{
return FirmName;
}
string Company::getFioOwner()
{
return FioOwner;
}
int Company::getPhone()
{
return Phone;
}
string Company::getAddress()
{
return Address;
}
string Company::getTypeOfActivity()
{
return TypeOfActivity;
}
ostream& operator<<(ostream& out, const Company& company)
{
out << "Company Name: " << company.FirmName << endl;
out << "Owner: " << company.FioOwner << endl;
out << "Phone Number: " << company.Phone << endl;
out << "Address: " << company.Address << endl;
out << "Activity Type: " << company.TypeOfActivity << endl;
return out;
}