主要人员有:在职人员(行政人员、教师、一般员工)、退休人员、返聘人员和临时工。现在,需要存储这些人员的人事档案信息:编号、姓名、性别、年龄、职务、职称、政治面貌、最高学历、任职时间、来院时间。
o
umstrcpytype
typestrcpy
ame
amestrcpysex
sexstrcpytime1
time1age
agestrcpytime2
time2strcpypos
posstrcpytechpos
techposstrcpyparty
partystrcpystudy
studymy
ext
extvoidset
extperso
extmy
ext
extperso
get
extretur
my
ext获取对对象的各个私有数据函数i
tget
umretur
ocharget
ameretur
amechargetsexretur
sex
23
fchargetposretur
poschargettechposretur
techposchargettime1retur
time1chargettime2retur
time2chargetpartyretur
partychargetstudyretur
studyi
tgetageretur
agevoidgetagi
tasageaschargettyperetur
typeclassSchoolprivateperso
myfirsti
tfirst
umpublicSchool
24
fmyfirstNULL
构造函数,将数据初始化Schooli
t
uchar
typchar
amchar
sei
t
agchar
tim1char
tim2char
pochar
techpochar
partchar
studmyfirst
ewperso
u
typ
am
se
ag
tim1
tim2
po
techpo
part
stud在最后插入新成员函数voidi
sertatlasti
t
umchar
typechar
amechar
sexi
t
agechar
time1char
time2char
poschar
techposchar
partychar
studyperso
extmyfirstif
extNULLmyfirst
ewperso
um
type
ame
sex
age
time1
time2
pos
techpos
party
studyelsewhile
extget
extNULL
ext
extget
ext
extset
ext
ewperso
um
type
ame
sex
age
time1
time2
pos
techpos
party
study
extget
ext从键盘输入数据,并创建相应对象函数,voidi
puti
tri
t
agechar
type20
ame20
sex20
time120
time220
pos20
techpos20
party20
study20cout