文档介绍:该【c语言课程设计 】是由【cjl201801】上传分享,文档一共【58】页,该文档可以免费在线阅读,需要了解更多关于【c语言课程设计 】的内容,可以使用淘豆网的站内搜索功能,选择自己适合的文档,以下文字是截取该文章内的部分文字,如需要获得完整电子版,请下载此文档到您的设备,方便您编辑和打印。:.
.................................................................4
..................................................4
1main
1..........................4
2!"#$selectmenu+,
2............4
3File/0"#
3............................5
4Insert/0"#/
4........................5
5Change/0"#/
5......................6
6Search/0"#/
6.......................6
7Delete/0"#/
7........................7
8Help/0"#/
8.........................7
>?***@ABCDEF............................................8
1GHI/JKL..........................................8
2MNOPIQ...........................................8
R$ST,...............................................9
VG
/
......................................................12
WXYZ$[\]^?_]`Z,...............................13
1abcS.......................................................13
2de.......................................................13
3?^.....................................................14
4?fg$fghijkl,................................15
5?]`.......................................................15:.
mno................................................................18
1pqr/stuvh/>wMNOPIQxyz{|z}~
TCS`"#x
Cswitch!"#/
+
.....................................................................................................................................18
2"#zhe..............................18
3/n+.....................18
4TC+.....................................18
5Y................................................18
 ¡¢£¤..........................................................20
1¡¢¥.......................................................20
$¦A§{¨©{ª«+¬C­***@A®+¯°±²³´µ`
¶·{2008................................................................................................................20
$¸¹{º»+¬C¼½¾¿À®+Á²ÃÄÅÄÆ`¶·,2007+
.....................................................................................................................................20
$ÇÈÉ+¬CÊËC°N´Ì®+ÍÎÍε`¶·{1995+.20
&AndrewÏ{ÐÑÒ+¬CÓÔÕÖÓ®+ÁÂ×
ØÙÆ`¶·,2002+.............................................20
ÚÛ+¬CÜÝÞ^ßuàá®+Á³µ`¶·{2006+.......20
2âã£ä.......................................................20
åæçè/.................................................................20
$åæå³/..................................................................20
éêë#Bäìí.......................................21:.
1.......................................................................................................21
2......................................................................................................22
3......................................................................................................52:.
îïðñßòij
1main
1:
[main0]
V
VVV
ôõabcSö÷øù"#úøùde!"#ýZ
[welcome()]ûsaveimage+ü[interface+][selcctmenuO]
1
2!"#selectmemi+,
2:
2:.
3File/0"#
3:
4Insert/0"#/
4:
4:.
5Change/0"#/
5:
5
6Search/0"#/
6:
6:.
7Delete/0"#/
7
7
8Help/0"#/
8:
8:.
>?***@ABCDEF
1
ÿ/*
*//*
*//*
*/
typedefstructoffice_tabtypedefstructexpert_tabtypedefstructregister_tab
(((
charoffice_num[l1];charoffice_num[l1];charexpert_num[l1];
charoffice_name[20];charexpert_num[ll];charreg_num[5];
charprincipal[20];charexpert_name[20];charcase_num[15];
chartele[12];charbirthdate[l1];charpatient_name[201;
structcharsex;intfee;
expert_tab*head_expert;chartele[12];chardate[l1];
structoffice_tab*next;chartitle[15];charperson[20];
}offices;charintro[50];structregister_tab*next;
struct}registers;
register_tab*head_register;
structexpert_tab*next;
{experts;
2
9
:.
!"#$
%&'"
()*+
,-./0)
Input“
2
Quit
2
Insert
2Changean4567
hange
Office
3
23
Delete
Changean4567
Expert
earch
3
Changea4567
Register
33
89:;
10#:.
11Insert#
12Delete#
Searchan=>67
Office
:.
3
13Search#
14Help#:.
?***@ABCD
E)FG
H)FG
45FG
IJFG
=>KE9F
***@ABCD
LMCDAB
NOPQ0)45H)IJFGRS2T'UVWX
Y,-Z[\UV.]^_`Y\aVb.]^:.
cde f!ghE)FGiE9 f$
1%&'"
2*+
AltH-X-QuitEsc-JnterfaceFITHelpFlO-Menii:.
3FG0)
jkl0)
0)
gister_Nur^10000006
10000005
_Nunrnil
qqqqqqql
tient_Nam;HUUUUU
irthJDate:19670430
.22
20080612
Tele_Nunr5555559
ggghhhh|
Title:WihhhhhN
IntroductionIdklsladj
m0):.
4FG=n!=n67$
jE)
Inputtheoffice(NO.).
10000003
E)
Inputtheexpert(NO.).
o23pq=>
E)
Inputtheregister(NO.).
Continuetoinputtheregister(NO)?
YES
mE9
Continuetoinputtheexpert(NO
YES
5FGE9
j./rst
E9X\:.
Alltheofficesinfomatioir
Office_Num0000000100000002
OfficeJMame:wmvwqqqqqq
Principal:wwwwrrrrrr
Tele_Nunr33333333555555
E9X\
AlltheexpertsinfomatioiT
ExperLJVurrr0000000400000005
Expert_Nanie!nnaKAqqqqqqqq
BirthJDate:1976032319670430
SexMW
TeleJVurrr3434342355555555
TiUe:JJJJJJhlihhhhhh
Introduction:ssssssssssjdklsladj
mE967
0ffice_Nuin:00000002
OffieeJVame:qqqqqq
Outputalltheexpertsoftheoffice?
Principal:rrrrrr
Tele_Nuin:555555
ouvwx:.
HELP:.
yz{
1|}~7K
W2
QTC"9,-Kswitch./,
-CD^
XYQ7|2,-^|
./ ,-WR¡¢
¢£¤¥¡,-¦§¨©ªWS\
R« WR¬2­®¡ W¯°¬\6±©ª[
\²³^Q,-§67©ª2()´,-R
Dµ¶·./¸,- WDµ¶·R¹9
º6»¼½·Rµ¶·£D^R67©ª¾¿ÀÁ¡Â¨
ÃWXY| 67ÄÅÆÇ¡
ÈÉ()´,-R23º µ¶·ÊAlt+FAlt+SË·WÌ©ª²³ ^
2Í,-¸¦ÎÏ7s+:
j":QTC"ÑÒ W¦ÓÔTCÕFWÖ2|× 6ØCÀÙCÚÛÜÝ,
ÓÔÕFßààdeá7ÕFâz2ãäWå\æçèéXê¦ÕFYR£D¢ë^
,-CDPQ6
ìW|í îï¾ðñW¤¦,-2¦switchò
 Wóôîï¾,-
Dµ¶·WXY|Tõd¢Í67Dµ¶·,-^Ëö÷
ø£¤K
ùúÑ-W-2µ¶·û|üý 6þÿ
3
!"#$%&
$%'()*+,-
./)*0123456
47TC89:;<=
5>?@:
B******@EFGHIJKLMNOPQROSTU9:VWXYPZG[\
]^_`P7abZcdGHIe/JKLMFfghijkl
/
m7TC8nopqrs[tuvGqwxyzqwzxy{|}~v./)*
setvisualpageO^Dsetactivepage"46w
pwO6w
pwPQ
SpqWapqZ/P[tu
7*!aW1sGZ*!sexa:.
scanf("%s",pexp->birthdate);
getchar;/*cdr£¤¥uYpexp->sex¦§*/
gotoxy(37,14);
scanf("%c'\&pexp->sex);
¨getcharOg
Zfloat*!fee(ª«¬)a{./scanf(”®F,&p->fee);S¯°±²
³´Wclear)*
GZ´turs[G[ZZ./getimageputimage)*VPQSl/µJK
_R7DOS86¶Y·JKO¸_O9:¹G[Zº»zy¼½34/bar)*qwF¾1xy
¿À[tuÁ
{./Z<ÂÃ_OZwÄÂäÅÆ2}¶Y<ÂÃ8
erqw)*_`ÇÈwÄl/JKRO
ZYÉÊ./P)*NË)*+rsÌÍV¶Y¨µ/1xy)*ÎZ6
FÏеÑÒ
ÓÔÕÖ×Gscanf())*ØrGgetchar)*/ÙÚscanf())*¨:WÛ
ecPÊÜÝ/OÞPÊ;getchar())*{scanf())*rch=getchar(),G7ch=getchar()
ßàGgetchar()
O7"#abâÙfgÆãäµ./¶YPQSåæ<=çÙ\;ÜÝ
¨èµfggotÌÍ./¶YPQSéêëì@í¶Y*!@í
ZîêïðñòóF7*!ôõö÷CD0øaØS/1\;gotÌÍ(ùú
Õ)YÞûü@íýWþórgotoÌÍÆÿdo-while
goto:.
1
!"#$C%&'()*+,-.
/01232008.
45678$C9:;<='>?*,***@ABAC12
3,2007o
EFGHCIJKC)'NO*NO/01231995
PKaiNiGeA.(Koenig,Andrew)QRST$CUVWXU'
>?*YZ[C123,2002
\]^$C_`abcdef'>?*-01232006
2
ghij/
4ghg-:.
klm*nopqrs
1
#include<>charsex;
#include<>chartele[12];
#include<>chartitlc[I5];
#include<>charintro[50];
#include<>structregister_tab*hcad_rcgister;
#include<>structexpert_tab*next;
#includc<>(experts;
/*z{|}~*/
#defincUp72typedefstructregister_tab
#defineDown80(
#dcfineLeft75charexpcrt_num[l1];
#defineRight77charreg_num[5];
#dcfineDel83charcase_num[15];
#defineTab9charpatient_name[20];
#defincPgUp73intfee;
#definePgDn81chardate[l1J;
#dcfineEsc1charperson[20];
#defineFl59structregister_tab*next;
[registers;
typedefstructoffice_tab
{/*-z{|}~*/
charoffice_num|11];/*
*/
charoffice_name[20];voidinputwindow(char**s,intsize);/*l*/
charprincipal[20];voidinput(offices**head)^*2*/
chartele[12];voidsave_crossist(offices*head);/*3*/
structexpert_tab*head_expert;intgetkey(void);/*4*/
structoffice_tab*next;voidGoodBye(char*sl,char*s2);/*5*/
(offices;voidInitialGraphics(void);/*6*/
/*xyz{|}~*/voidIns_Offi(void);/*7*/
typedefstructexpert_tabvoidload_crossist(offices**head);/*8*/
(voidmakesubmenu(char**s,intsize,intx);/*9*/
charoffice_num|111;voidhelp(intx,inty);/*10*/
charexpert_num[ll];voidsaveimage(void);/*l1*/
charexpert_name|20|;
charbirthdate[l1];voidselectmenu(void);/*13*/:.
voidsort_expert_tab(experts**headp,char*s);/*14*/
voidsort_office_tab(offices**headp,char*s);/*15*/voidSear_Offi(void);/*34*/
voidsort_register_tab(registers**headp,char*s);/*l6*/voidSear_Exp(void);/*35*/
voidinterface(void);/*18*/voidSear_Reg(void);/*36*/
voidIns_Exp(void);/*19*/voidoutputinfo(char**s,introw,intLine);/*37*/
voidIns_Reg(void);/*20*/voidsort_expert_by_amount(experts**headp);/*38*/
voidclear(void);/*21*/voidsort_office_by_amount(offices**headp);/*39*/
voidCha_Offi(void);/*22*/intamount_oCexpert(experts*pexp);/*40*/
voidCha_Exp(void);/*23*/intamount_of_office(offices*p);/*41*/
voidCha_Reg(void);/*24*/voidout_offices(void);
voidDele_Offi(void);/*25*/voidout_experts();
voidDele_Exp(void);/*26*/voidout_registers();
voidDele_Reg(void);/*27*/voidwelcome(void);
intchoosesubmenu(intx,intsize);/*28*/intyes_or_no(inty);
voidsort_office_tab(offices**headp,char*s);/*30*/voidabout(void);
voidsort_expert_tab(experts**headp,char*s);/*31*/intsort_method(char**s,inty);
voidsort_register_tab(registers**headp,char*s);/*32*/
2
#include"f:\keshe\
J*/
void*buf_yn;/**/
/*
*/intmain_x=0;
unsignedsize=0;char*office_info[]={
intflag;
void*buf_main;/*o
*/nOffice_Name:",
void*buf_sub;/*o
*/"Principal:",
void*buf_down1;/*|nTele_Num:M
}
J1*/}¤
void*buf_down2;/*|char*expert_info[]={
}
J2*/"Expert_Num:M,
void*buf_down3;/*|"Expert-Name:",
}
J3*/"Birth_Date:,\
void*buf_subl;/*oFile
o'YSex:1',
J*/"Tele_Num:M,
void*bu(Lsub2;/*¡oinsErt
"Title:",
o
J*/"Introduction:"
void*buf_sub3;/*¢oChange
)¤
o
J*/char*register_info[]={
void*butsub4;/*¢oDelete
"Register_Num:'\
o
J*/"Case_Num:",
void*bufLsub5;/*¢oSearch
"Patient_Name:'\
o
J*/“Fee:"
void*buf_sub6;/*£¢oHelp
o"Date:",:Thedocumentwascreatedwit