C语言项目--教师信息/学生成绩管理系统
这个系统实现两个功能,分别是管理教师的信息和学生的成绩,用户可 以选择切换实现相应的功能。话不多说了,现在看下程序的实现截
文餺投aoo VASSISIX ?目£) £4述)灣似D BU ⑽ SQUflJ HUB MC6)分析IW 窗匚⑽ WhlH)
DvUg ? WCn37
X Ud Uux ? X tea stu.h
O ? # fl,
void edd.lr?ne?chcr te*Q)
gcH.c ft*
CGo
(*????
C >dd.lee(Tetcher ImQ)
Jj 似胡 了ocherjtuder
* i Tcxher.Student_Mar > fr3 d
*0 toa.stuJi
-a朦文tt
> tM.UUX
for(t i
getchar0:
printf(^please input the teacher* s NO. :*); gets(tea[i]. number),
printf(^please input the teacher's name:*); gets(tea[iJ. name);
printf (*please input the teacher* s sex(num/woman 0/1): gets(tea[i]. sex);
if (tea[i]. sex[0]=’ 0’〉strcpy (tea[i]. sex, *nan*); else strcpy (tea[i]. sex, ""woman*); printf(*please input the teacher* s address:*); gets(tea[i]. addr);
printf(*the teacher is raarried(No/Yes 0/1):*〉: gets(tea[i]. married);
if (tea[i]. sex[0]=’ 0’ > strcpy(tea[i]. sex, *No*); else strcpv(tea[i]. sex, *"Yes*);
}
display_tea(tea, 0, numtea-l);
getchar ();
D:\user5\administrator\documents\visual studio 2012\Projects\Teacher-Student_Manager\..
iQi
言息管理/学生成缋管理系统**
Please select one system:T-Teacher and S-Student!*!
D:\user5\admini5trator\documents\visual studio 2012\Proiects\Teacher Student~
17
17
**弯师傷S、管理/学生成缋管理系统** 欢迎便用?
Please select one systeruT—Teacher and S—Student???
t
0.Exit the systen
1.See teacher record
Add teacher record
Adjust teacher record
5.Find teacher record
4.Open the file
please input 1-5 to select related function or 0 to exit???
晏文记
计开存示
統打保显
■ ■ ■ ■
5 6 7 8
录录nW:
记记记排:
生生生录統
跌$>¥>-紀系
加询改生出
導驚S
12 3 4 0
请选择<0-8〉:
D:\user5\administrator\documents\visual studio 2012\Projects\Teacher-Student-Manager\.<
言息管理/学生成缋管理系统**
Please select one system:T-Teacber and S-Student!!!
0.Exit the system
1 .See teacher record
Add teacher record
Adjust teacher record
5.Find teacher record
4-Open the file
please input 1-5 to select related function or 0 to exit?” 0
欢迎再次使用本系统 制作人员 张虎(BruceZhang)
请按任意键继续
LJ
下面贴出部分代码:
[cpp] view olaincopy
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2