Commit 11926830eba9aa48279f22794102f159fb510fc9
1 parent
26cfc9af
Made Employee and Manager of different sizes
Showing
2 changed files
with
2 additions
and
2 deletions
examples07/01-employee/employee1.cpp
| @@ -9,7 +9,7 @@ class Employee | @@ -9,7 +9,7 @@ class Employee | ||
| 9 | { | 9 | { |
| 10 | string name; | 10 | string name; |
| 11 | char middle_initial; | 11 | char middle_initial; |
| 12 | - short department; | 12 | + long department; |
| 13 | public: | 13 | public: |
| 14 | Employee (const string & n, int dept):name (n), department (dept) | 14 | Employee (const string & n, int dept):name (n), department (dept) |
| 15 | { | 15 | { |
examples07/01-employee/employee2.cpp
| @@ -9,7 +9,7 @@ class Employee | @@ -9,7 +9,7 @@ class Employee | ||
| 9 | { | 9 | { |
| 10 | string name; | 10 | string name; |
| 11 | char middle_initial; | 11 | char middle_initial; |
| 12 | - short department; | 12 | + long department; |
| 13 | public: | 13 | public: |
| 14 | Employee (const string & n, int dept):name (n), department (dept) | 14 | Employee (const string & n, int dept):name (n), department (dept) |
| 15 | { | 15 | { |