1 / 58
文档名称:

c语言课程设计.pdf

格式:pdf   大小:6,845KB   页数:58页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

c语言课程设计.pdf

上传人:cjl201801 2022/10/12 文件大小:6.68 MB

下载得到文件列表

c语言课程设计.pdf

文档介绍

文档介绍:该【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}~
€TCS`‚"#xƒ„…Cswitch†‡ˆ‰!"#/
+
.....................................................................................................................................18
2Š‹‚"#ŒzŽhe..............................18
3Š‹‘’“”•–/—n˜™+.....................18
4€TCš›œž+.....................................18
5ŠŸY—................................................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)
jkl 0)
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|}~€‚7ƒ„K…†W‡†2
ˆ‰QTCŠ"9‹,-KŒˆ‰Žswitch‘’“./,
-CD^
XYQ”‚7•–|—˜™2ˆ‰”,-^|š›…œžŸ./ ‹,-WR¡”¢
”¢£¤“¥¡‹,-¦§‚ž¨©ªWS\
R« W‡R¬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¢ë”^
’“,-CDPQ‚6
ìW|—˜í îï¾ðñW¤“¦’“,-Ÿ2¦Žswitch‘Ÿò
 Wóôîï¾,-…DŽµ¶·WXY|Ÿ™Tõd¢Í”67Dµ¶·,-^Ëö÷”
ø•–£¤“K…™™ùúžÑ-W-2Žµ¶·Ÿû|üý 6þÿ
3



 !"#$%&
$%'()*+,-
./)*0123456
47TC89:;<=
5>?@:
B******@EFG HIJKLMNOPQ ROSTU9:VWXYPZG[\
]^_`P7abZcdG HIe/JKLMFfghijkl
/
m7TC8nopqrs[tuvGqwxyzqwzxy{|}~v€./)*
setvisualpageO^Dsetactivepage"46w‚ƒ„…pw‚ƒO†‡ˆ6w‚ƒ„…pw‚ƒPQ‰
SŠpq‹ŒWŽapq‰Z/P[tu
‘7*!’“aW”1s•–—˜™GZ’“š›*!sexœžŸa:.
scanf("%s",pexp->birthdate);
getchar;/*cdr£¤¥uYpexp->sex¦§*/
gotoxy(37,14);
scanf("%c'\&pexp->sex);
¨getcharOg
™€Z’“float*!fee(ª«¬)a{Œ./scanf(”®F,&p->fee);‰S¯°±²
³´Wclear)*
™GZ´tu˜rs[G[ZZ./getimage„putimage)*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ÏеÑÒ
ÓÔÕÖ×G•scanf())*Ø rG•getchar)*/Ùړscanf())*’“¨ˆ:›WÛ
ec PÊÜÝ/OÞPÊ;getchar())*{Œscanf())*rch=getchar(),G 7ch=getchar()
ßàG•getchar()
O7"#abâÙfgÆãäµ./¶YPQSåæ<=çÙ\;ÜÝ
¨èµfggotÌÍ./¶YPQSéêëì@í¶Y*!@í
ZîêðñòóF7*!ô“õ“ö÷CD0øaØS/1\;gotÌÍ(ùú
Õ)YÞûü@íýWþórgotoÌÍÆÿdo-while

goto:.

1
!"#$C% &'()*+,-.
/01232008.
45678$C 9:;<='>?*,***@ABAC12
3,2007o
EFGHCIJKC)'NO*NO/01231995
PKaiNiGeA.(Koenig,Andrew)QRST$CUVWXU'
>?*YZ[C123,2002
\]^$C_`a bcdef'>?*-01232006
2
ghij/
4ghg-:.
klm* nopq rs
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_cross†ist(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_cross†ist(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
}
Jž1*/}¤
void*buf_down2;/*‹Œ”•–—˜™š›œ|char*expert_info[]={
}
Jž2*/"Expert_Num:M,
void*buf_down3;/*‹Œ”•–—˜™š›œ|"Expert-Name:",
}
Jž3*/"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