forked from acl-dev/acl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/acl-dev/acl
- Loading branch information
Showing
12 changed files
with
147 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,57 @@ | ||
#pragma once | ||
#include <string> | ||
|
||
struct student | ||
struct people | ||
{ | ||
people(void) {} | ||
virtual ~people(void) {} | ||
}; | ||
|
||
struct student : people | ||
{ | ||
std::string shcool; | ||
std::string class_name; | ||
|
||
student(void) {} | ||
virtual ~student(void) {} | ||
}; | ||
|
||
struct province | ||
{ | ||
std::string province_name; | ||
std::string position; | ||
|
||
province(void) {} | ||
virtual ~province(void) {} | ||
}; | ||
|
||
struct user : student, province | ||
{ | ||
std::string name; | ||
int age; | ||
bool male; | ||
|
||
user(void) {} | ||
virtual ~user(void) {} | ||
}; | ||
|
||
struct user_male : user | ||
{ | ||
std::string favorite; | ||
int height; | ||
|
||
const char* get_favorite(void) const | ||
{ | ||
return favorite.c_str(); | ||
} | ||
int get_height(void) const | ||
{ | ||
return height; | ||
} | ||
}; | ||
|
||
struct user_female : user | ||
{ | ||
std::string favorite; | ||
int weigtht; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.