当前位置: 首页 > >

c语言学生证管理系统设计_图文

发布时间:

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducatio nal pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comra de XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit an d cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countrie s must have "unity of will". History ha s

HUBEI UNIVERSITY OF AUTOMOTIVE TECHNOLOGY
C 语言程序设计报告

学 院: 专 业: 题 目: 班 号: 姓 名: 学 号: 指导教师:

电气与信息工程学院 电子信息产业 学生证管理系统 T樊帅昌
吴年志

2014 年 7 月 2 日

1

proved t hat a people and a nation, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it m eans that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like granite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embodies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he part y's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng t he party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a common fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, comm itted to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the dev elopment of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interest s of the over whelmi ng majority of the pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

目录

C 语言程序设计报告 .......................................................................................................................1

一.

课程设计目的 ................................................................................................................... 3

二设计要求....................................................................................................................................... 3

三具体模块分析...............................................................................................................................5

1 头文件及定义结构体............................................................................................................5

头文件: ........................................................................................................................... 5

结构体: ........................................................................................................................... 5

2 主函数....................................................................................................................................6

3 分块设计................................................................................................................................6

首页面...............................................................................................................................6

系统菜单 ........................................................................................................................... 6

用户选择 ........................................................................................................................... 7

添加模块 ........................................................................................................................... 8

查询模块 ......................................................................................................................... 12

修改模块 ......................................................................................................................... 15

删除模块 ......................................................................................................................... 19

四.测试分析....................................................................................................................................21

五.课程设计总结 ............................................................................................................................ 26

六.程序源代码................................................................................................................................27

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like granite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

一. 课程设计目的

1.巩固和加深学生对《C 语言程序设计》课程基本知识的理解和掌握。 2.掌握 C 语言编程和程序调试的基本技能。 3.掌握书写程序设计说明文档的能力。 4.提高学生分析问题和解决问题的能力,培养严谨的工作作风和良好的程序设计习惯,为 后续课程的学习打下良好的基础。
二设计要求

题目:学生证管理程序

题目描述:

请设计一个学生证管理的程序,以方便辅导员对学生证的管理,该程序应该具有以下功

能:

(1)能从键盘输入某位学生的学生证信息(学生证应该包含的信息可以参考自己的学生

证)。

(2)给定学号,显示该学生的学生证信息。

(3)给定班号,显示该班所有学生的学生证信息。

(4)给定学号,修改该学生的学生证信息。

(5)给定学号,删除该学生的学生证信息。

题目要求:

(1)按照分析、设计、编码、调试、测试的软件过程完成这个应用程序。

(2)学生证应该包含的信息参考自己的学生证。

(3)为各项操作功能设计一个菜单,应用程序运行后,先显示这个菜单,然后用户通过

菜单项选择希望进行的操作项目。

输入要求:

(1)应用程序运行后在屏幕上显示一个菜单。用户可以根据需求,选定相应的操作项目。

进入每个操作后,根据应用程序的提示信息,从键盘输入相应的信息。程序根据用户输入的

信息完成相应的处理,实现要求的功能。

(2)能对输入的数据进行简单的校验,例如,学生的入学时间必须是一个合法的日期格

式,学号是唯一的(一个学号对应一条学生证信息)。

输出要求:

(1)应用程序运行后,要在屏幕上显示一个菜单。

(2)要求用户输入数据时,给出清晰、明确的提示信息,包括输入的数据内容、格式以

及结束方式等。

(3)在程序完成处理后,要清楚地给出程序的处理结果。例如,在给定学号删除学生证

信息时,如果该学生不存在,要提示没能删除,如果删除成功要提示删除成功。

实现要求:

(1)在程序中使用链表存储学生证信息。

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

(2)采用模块化程序设计的方法,将程序中的各项功能用函数实现。 提示:
(1)使用结构体表示学生证信息,一个结点保存一条学生证信息。 扩展功能:
(1)学生证信息从文件读入。 (2)将学生证信息保存到文件中。
(一)基本要求 1.掌握 C 语言程序设计的方法,熟悉使用 VC6.0 作为开发软件开发 C 语言程序及 C 程 序的调试过程。 2.熟悉 C 语言中的数据类型,数据结构、语句结构、运算方法、函数,巩固和加深对 理论课中知识的理解,提高基本编程能力。 3.综合编程题,每组完成一个课题(一组不能超过 2 人),每组成员必须明确各自的任
务。 4.要求利用结构化程序设计方法以及 C 的编程思想来完成题目问题描述中所要求的设 计任务,功能模块化,设计内容符合题目要求; 5.概要设计模块划分合理,清晰,系统结构图符合功能操作要求; 6.详细设计,主要功能模块有较完善的程序流程图,每个主要功能模块有较完善的入 口、功能、出口等的清晰的描述,说明符合结构化程序设计要求; 7.每个模块的程序代码,具有较好的可读性和可靠性;程序书写风格:锯齿型书写格 式,并有详尽的注释。 8.用户界面要求尽可能友好,提示信息充分、完整;对输入内容有较完善的判误处理 并方便操作; 9.程序必须上机调试通过,不应出现语法型、功能型错误,并获得满意的结果; 10.所设计的程序,必须在提交验收前,通过测试用例做必要的功能测试,尽可能避免 原则性错误的出现。

(二)设计步骤 在进行综合编程时需要遵循以下的步骤: 1.问题分析、确定解决方案框架,充分地分析和理解问题本身,弄清要求做什么。在 确定解决方案框架过程中,仔细考虑如何使用数据,数据结构有哪些?程序结构清 晰、合理、简单和易于调试,并确定每个模块的简单功能,以及模块之间的调用关 系。 2.详细设计和编码:确定程序的主要流程,在此基础上进行代码设计,每个功能模块 程序一般不超过 60 行,否则要进一步划分。 3.上机前编写程序与检查。 4.上机调试程序。 5.每个功能在输入值集范围内,确定好几组测试用例数据,通过尽可能详尽的测试用 例,找出程序中存在的或有可能出现的功能错误。

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

(三)综合报告要求 课程设计报告要求内容:
1.系统设计分析预览:
(1)系统功能模块划分: 根据需求分析,可以把这个系统的设计分为学生信息预览、管理系统、 添加、从文件读入、查询、修改、删除、退出系统七大模块,其中查询模块可以 分为两个子模块,系统功能模块图如下所示:
学生信息预览

学生证管理系统

添加

读入

查询

修改

删除

退出

按照学号查询

按照班级查询

三具体模块分析

1 头文件及定义结构体

头文件:
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 1000
结构体:

//输入输出函数 //常用函数库 //字符串函数

struct Student{ char name[10]; char sex[2];

//姓名,只能输入 5 个汉字 //性别,只能输入 1 个汉字

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

int age;

//年龄

char department[48]; //所在院系

char banji[30]; //班级

char sno[20]; //学号

}StuInfo[N]; //结构体数组,用作读取和存放临时数据

2 主函数
main() {
preprintmenu(); printmenu(); selmenu(); }

//首页面 //系统菜单 //选择菜单

3 分块设计

首页面

void preprintmenu() {
system("cls"); printf(" printf("\n"); printf(" printf(" printf(" printf(" printf(" printf("

//首页面

c 语言课程设计

\n");

课设题目: 学生证管理程序\n"); 学生班级: T1323-16 班\n"); 学生姓名: 樊帅昌\n"); 学生联系方式: 电话:\n"); 学生联系方式: qq:\n"); 完成日期: 2014 年 7 月 1 日");

printf("\n 请按 enter 进入系统!\n");

getchar(); system("cls");

//清屏函数

}

设计目的:首页面显示学生设计的题目及学生的相关信息,用于教师知道学生应该完成题目, 教师了解后,提示按 enter 键进入系统。

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

系统菜单

void printmenu()

//使用菜单

{

system("cls"); printf("*************欢迎使用学生证管理系统********************\n");

printf("\n");

printf("

1. 添加学生的学生证信息\n"

);

printf(" printf("

2. 从文件读入学生的学生证信息\n"); 3. 查询学生的学生证信息\n");

printf(" printf(" printf("

4. 给定学号修改该学生的学生证信息\n"); 5. 给定学号删除该学生的学生证信息\n"); 0. 退出系统\n");

printf("\n");

printf("********************************************************\n");

printf("

请根据需要选择菜单选项(0-5)\n");

}

用户选择

void selmenu() {
int sel; char ch;

//选择菜单

while(1)

{ printf("请输入菜单选项: ");

scanf("%d",&sel); if(sel<0||sel>6)

//对选择菜单进行判断

{ printf("选择错误,请重新选择!\n");

continue;

}

switch(sel)

{ case 1: inputinfo();break; case 2: showinfo();break; case 3: quiry();break; case 4: searchreplace();break; case 5: searchdelate();break;

//添加模块 //从文件读入模块 //查询模块 //修改模块 //删除模块

case 0: exit(0);

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

} if(sel==0) break; } }

添加模块
首先要判断文件 StuInfo.txt 是否存 在,如果存在就以读写(r+)的方式 打开,如果不存在,就以写(w)的方 式创建文件 StuInfo.txt。输入格式要 求:性别为男或女,学号为 11 位且不 能重复,年龄在 0-100 之间,班级号 为 6 位,程序提供了完善的验证机制, 输入错误时将提示重新输入直到正确 为止。此外,如果以读写的方式打开, 还要判断记录数 num<N 是否成立,因为 结构体数组的大小为 N,当 num=N 时, 表示已满,不能再存储数据,需要修 改 N 的值。 该模块具体流程如左图:

代码:

void inputinfo()

//输入学生信息

{

int num;

int i;

int age;

char sno[20]; char sex[20];

//临时变量,用于验证输入的学号是否满足条件 //临时变量,用于验证输入的性别是否满足条件

char banji[20];

//临时变量,用于验证输入的班级是否满足条件

int right;

FILE *fp; if((fp=fopen("StuInfo.txt","r+"))==NULL)

//以读写方式打开

{

if((fp=fopen("StuInfo.txt","w"))==NULL) //文件不存在则创建文件

{

printf("\n 文件不存在且创建失败,返回!\n");

printmenu();

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

} printf("\n 请按照提示输入学生信息:\n\n"); printf("姓名:"); scanf("%s",&StuInfo[0].name); do {
printf("\n 性别(男或女):"); scanf("%s",sex); if((strcmp(sex,"男")!=0)&&(strcmp(sex,"女")!=0)) { printf("输入错误,请输入男或女!\n"); right=1; getchar(); } else right=0; }while(right==1); strcpy(StuInfo[0].sex,sex); do { printf("\n 学号(11 位):"); scanf("%s",sno); if(strlen(sno)!=11) { printf("输入错误,学号长度应为 11 位数!\n"); right=1; getchar(); } else right=0; }while(right==1); strcpy(StuInfo[0].sno,sno); do { printf("\n 年龄:"); scanf("%d",&age); if(age<=1||age>25) { printf("年龄应在 15-25 之间,请重新输入年龄!\n"); right=1; getchar(); } else right=0; }while(right==1); StuInfo[0].age=age; do

//判断性别输入合法性 //判断学号输入合法性

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

{ printf("\n 班号(7 位):"); scanf("%s",banji); if(strlen(banji)!=7) { printf("输入错误,班号长度应为 7 位数!\n"); right=1; getchar(); } else right=0;
}while(right==1); strcpy(StuInfo[0].banji,banji); printf("\n 所在院系名:"); scanf("%s",&StuInfo[0].department);

fprintf(fp,"\n%s\t%s\t%s\t%d\t%s\t%s",StuInfo[0].name,StuInfo[0].sex,StuInfo[0].sno,StuInfo[0].

age,StuInfo[0].banji,StuInfo[0].department);

fclose(fp);

printf("\n 保存成功!\n");

//将输入信息保存至文件

printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar();

printmenu();

//返回菜单

}

for(i=0;!feof(fp);i++)

{

fscanf(fp,"%s%s%s%d%s%s",&StuInfo[i].name,&StuInfo[i].sex,&StuInfo[i].sno,&StuInfo[i].age,

&StuInfo[i].banji,&StuInfo[i].department);

//以读写方式输入

}

num=i;

//记录数

if(num==N)

{

printf("\n 保存记录数超出结构体数组数的大小,请先修改 N 的值\n");

printmenu();

} printf("\n 请按照提示输入学生信息:\n\n"); printf("姓名:"); scanf("%s",&StuInfo[num].name); do
{ printf("\n 性别(男或女):");

注:判断记录数 num<N 是否成立,因为结构体 数组的大小为 N,当 num=N 时,表示已满, 不能再存储数据,需要 修改 N 的值。

scanf("%s",sex);

if((strcmp(sex,"男")!=0)&&(strcmp(sex,"女")!=0))

{

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

printf("输入错误,请输入男或女!\n"); right=1; getchar(); } else right=0; }while(right==1); strcpy(StuInfo[num].sex,sex); do { printf("\n 学号(11 位):"); scanf("%s",sno); if(strlen(sno)!=11) { printf("输入错误,学号长度应为 11 位数!\n"); right=1; getchar(); } else right=0; for(i=0;i<num;i++) {
if(strcmp(sno,StuInfo[i].sno)==0) {
printf("该学号已经存在,请重新输入!\n"); right=1; getchar(); } } }while(right==1); strcpy(StuInfo[num].sno,sno); do { printf("\n 年龄:"); scanf("%d",&age); if(age<=15||age>25) { printf("年龄应在 15-25 之间,请重新输入年龄!\n"); right=1; getchar(); } else right=0; }while(right==1); StuInfo[num].age=age; do {

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

printf("\n 班号(7 位):"); scanf("%s",banji); if(strlen(banji)!=7) { printf("输入错误,班号长度应为 7 位数!\n"); right=1; getchar(); } else right=0; }while(right==1); strcpy(StuInfo[num].banji,banji); printf("\n 所在院系名:"); scanf("%s",&StuInfo[num].department);

fprintf(fp,"\n%s\t%s\t%s\t%d\t%s\t%s",StuInfo[num].name,StuInfo[num].sex,StuInfo[num].sno,St

uInfo[num].age,StuInfo[num].banji,StuInfo[num].department);

fclose(fp); printf("\n 保存成功!\n");

//对文件进行保存

printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar();

printmenu();

}

查询模块

分为按照学号查询和按照班级查询两部分,可以通过菜单形式显示。

1 查询菜单

void quiry()

//查询

{

int chose;

int right;

do

{

system("cls");

printf("\n\t1-按学号查询\t2-某班学生信息\t3-返回\n"); printf("\n 请输入数字选择:");

scanf("%d",&chose);

if(chose<1||chose>3)

{

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

right=1; getchar(); } else right=0; }while(right==1); switch(chose) { case 1:searchshowinfo();break; case 2:searchshowallinfo();break; case 3:printmenu(); } }
2 按照学号查询

输入学号,并对学号进行查找,查找后显示出来。 流程图:

该部分代码:

void searchshowinfo()

{

int found=-1;

int num,i;

char no[20];

FILE *fp;

if((fp=fopen("StuInfo.txt","r"))==NULL)

{ printf("文件打不开!\n");

printmenu();

} for(i=0;!feof(fp);i++)

//读取文件

{

fscanf(fp,"%s%s%s%d%s%s",&StuInfo[i].name,&StuInfo[i].sex,&StuInfo[i].sno,&StuInfo[i].age,

&StuInfo[i].banji,&StuInfo[i].department);

}

num=i;

fclose(fp); printf("\n 请输入学生学号:");

scanf("%s",no);

for(i=0;i<num;i++)

{ if(strcmp(no,StuInfo[i].sno)==0)

将输入学号与已存学号进行对比,查找出该学生

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

{
found=i; printf("\n 该学生的信息为:\n\n"); printf("姓名 性别 学号

年龄

班号

所在院系名\n");

printf("%s\t%s\t%s\t%d\t%s\t\t%s\n",StuInfo[found].name,StuInfo[found].sex,StuInfo[found].sno,

StuInfo[found].age,StuInfo[found].banji,StuInfo[found].department);

}

}

if(found<0)

printf("\n 没有找到该学号的记录!\n"); printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar(); quiry(); }

//调用该层菜单

3 按照班号查询

将输入的班号与已存的班号进行对比,并将 该班所有学生的学生证信息输出 流程图如右:

该部分代码:

void searchshowallinfo()

{

int found= -1;

int num;

int i;

char ClaNO[20];

FILE*fp;

if((fp=fopen("StuInfo.txt","r"))==NULL)

{ printf("文件打不开!\n");

printmenu();

} for(i=0;!feof(fp);i++)

//读取文件

{

fscanf(fp,"%s%s%s%d%s%s",&StuInfo[i].name,&StuInfo[i].sex,&StuInfo[i].sno,&StuInfo[i].age, &StuInfo[i].banji,&StuInfo[i].department);
} num=i;

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

fclose(fp); printf("\n 请输入班号:"); scanf("%s",ClaNO);

for(i=0;i<num;i++) { if(strcmp(ClaNO,StuInfo[i].banji)==0) { found=i; printf("\n 该班级的学生信息为:\n\n"); printf("姓名 性别 学号

//查找该班级 年龄 班号

所在院系名\n");

printf("%s\t%s\t%s\t%d\t%s\t%s\n",StuInfo[found].name,StuInfo[found].sex,StuInfo[found].sno,S

tuInfo[found].age,StuInfo[found].banji,StuInfo[found].department);

}

}

if(found<0)

//没有查找到该班级

printf("\n 没有找到该班号的记录!\n");

printf("\n 请按 enter 键返回上级菜单!\n");

getchar();

getchar();

quiry();

修改模块

先判断文件 StuInfo.txt 以读(r)的方式能否打开,不能就返回,可以就 读入记录;然后输入学号查找记录,没找到就返回,找到就按照提示修改该记录, 与输入模块一样,输入的格式要求:性别为男或女,学号为 11 位且不能与除当 前修改的记录的学号外的记录的学号重复,年龄在 15 到 25 之间,班级号为 7 位,程序提供了完善的验证机制,输入错误时将提示重新输入直到正确为止。输 入完成后,再以写(w)的方式创建文件,不能创建就返回,可以就将结构体数 组中的所有记录保存到文件中,这与添加稍有差别,最后返回主菜单。
流程图如下

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

开始

(fpr=fopen("StuInfo.txt","r"))==NULL 否
读取文件
输入学号

是否存在该学号的记录



根据提示输

入新信息



(fpw=fopen("StuInfo.txt","w"))==NULL 否

保存数据


主菜单

代码部分:

void searchreplace()

//修改

{

int num;

int i;

int right;

int age; char sex[20]; char banji[20]; char sno[20];

//临时变量,用于验证输入的性别是否满足条件 //临时变量,用于验证输入的班级是否满足条件 //临时变量,用于验证输入的学号是否满足条件

char department[30];

//临时变量,用于验证输入的院系是否满足条件

int found=-1;

char StuNO[20];

FILE*fpr,*fpw;

if((fpr=fopen("StuInfo.txt","r"))==NULL)

{ printf("文件打不开!\n");

printmenu();

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

} for(i=0;!feof(fpr);i++)
{

//读取文件

fscanf(fpr,"%s%s%s%d%s%s",&StuInfo[i].name,&StuInfo[i].sex,&StuInfo[i].sno,&StuInfo[i].age

,&StuInfo[i].banji,&StuInfo[i].department);

}

num=i;

fclose(fpr);

printf("\n 请输入学号选择要修改的学生证:\n");

scanf("%s",StuNO);

for(i=0;i<num;i++)

{

if(strcmp(StuNO,StuInfo[i].sno)==0)

{

found=i;

printf("\n 你要修改的学生信息为:\n\n");

printf("姓名 性别 学号

年龄 班号

所在院系名\n");

printf("%s\t%s\t%s\t%d\t%s\t%s\n",StuInfo[i].name,StuInfo[i].sex,StuInfo[i].sno,StuInfo[i].age,St uInfo[i].banji,StuInfo[i].department);
printf("\n 请按照提示输入学生的新信息:\n"); printf("姓名:"); scanf("%s",&StuInfo[found].name); do {
printf("\n 性别(男或女):"); scanf("%s",sex); if((strcmp(sex,"男")!=0)&&(strcmp(sex,"女")!=0)) { printf("输入错误,请输入男或女!\n"); right=1; getchar(); } else right=0; }while(right==1); strcpy(StuInfo[found].sex,sex); do { printf("\n 学号(11 位):"); scanf("%s",sno); if(strlen(sno)!=11) { printf("输入错误,学号长度应为 11 位数!\n");

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

right=1; getchar(); } else right=0; for(i=0;i<num;i++) {
if((i!=found)&&(strcmp(sno,StuInfo[i].sno)==0)) {
printf("该学号已经存在,请重新输入!\n"); right=1; getchar(); } } }while(right==1); strcpy(StuInfo[found].sno,sno); do { printf("\n 年龄:"); scanf("%d",&age); if(age<=15||age>25) { printf("年龄应在 15-25 之间,请重新输入年龄!\n"); right=1; getchar(); } else right=0; }while(right==1); StuInfo[found].age=age; do { printf("\n 班号(7 位):"); scanf("%s",banji); if(strlen(banji)!=7) { printf("输入错误,班号长度应为 7 位数!\n"); right=1; getchar(); } else right=0; }while(right==1); strcpy(StuInfo[found].banji,banji); printf("\n 所在院系名:"); scanf("%s",&StuInfo[found].department); if((fpw=fopen("StuInfo.txt","w"))==NULL)

//学号查重

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

{ printf("文件打不开,保存失败!\n");

printmenu();

} for(i=0;i<num;i++)

//保存文件

{

fprintf(fpw,"\n%s\t%s\t%s\t%d\t%s\t%s",StuInfo[i].name,StuInfo[i].sex,StuInfo[i].sno,StuInfo[i].a

ge,StuInfo[i].banji,StuInfo[i].department);

}

fclose(fpw);

printf("\n 修改成功!\n"); printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar();

printmenu();

}

}

if(found<0)

//查找不到

{

printf("\n 没有找到该学号的记录:\n"); printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar();

printmenu();

}

}

删除模块

给定学号,先查找并显示出来,然后将这个学号对应的学生信息删除。

代码:

void searchdelate()

//删除

{

int num;

int i;

int found=-1;

char StuNO[20];

FILE*fpr,*fpw;

if((fpr=fopen("StuInfo.txt","r"))==NULL)

{ printf("文件打不开!\n");

printmenu();

}

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

for(i=0;!feof(fpr);i++) {

//读取文件

fscanf(fpr,"%s%s%s%d%s%s",&StuInfo[i].name,&StuInfo[i].sex,&StuInfo[i].sno,&StuInfo[i].age

,&StuInfo[i].banji,&StuInfo[i].department);

}

num=i;

fclose(fpr); printf("\n 请输入学号选择你要删除的学生证信息:\n");

scanf("%s",StuNO);

for(i=0;i<num;i++)

{

if(strcmp(StuNO,StuInfo[i].sno)==0)

{

found=i; printf("\n 你删除的学生信息为:\n\n");

printf("姓名 性别 学号

年龄 班号 所在院系\n");

printf("%s\t%s\t%s\t%d\t%s\t%s\n",StuInfo[found].name,StuInfo[found].sex,StuInfo[found].sno,S

tuInfo[found].age,StuInfo[found].banji,StuInfo[found].department);

if(found<num-1)

{

for(found;found<num-1;found++)

//删除该学生的信息

{

strcpy(StuInfo[found].name,StuInfo[found+1].name);

strcpy(StuInfo[found].sex,StuInfo[found+1].sex);

strcpy(StuInfo[found].sno,StuInfo[found+1].sno);

StuInfo[found].age=StuInfo[found+1].age;

strcpy(StuInfo[found].banji,StuInfo[found+1].banji);

strcpy(StuInfo[found].department,StuInfo[found+1].department);

}

}

if((fpw=fopen("StuInfo.txt","w"))==NULL)

{

printf("文件打不开!\n");

printmenu();

}

for(i=0;i<num-1;i++)

//保存文件

{

fprintf(fpw,"\n%s\t%s\t%s\t%d\t%s\t%s",StuInfo[i].name,StuInfo[i].sex,StuInfo[i].sno,StuInfo[i].a ge,StuInfo[i].banji,StuInfo[i].department);
} fclose(fpw);

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

printf("\n 删除成功!\n");

//提示删除成功

printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar();

printmenu();

}

}

if(found<0)

{

printf("\n 没有找到该学号的记录:\n"); printf("\n 请按 enter 键返回主菜单!\n");

getchar();

getchar();

printmenu();

}

}

四.测试分析

主要内容:测试用例数据,测试结果,实际运行结果截图,测试中出现的问题、原 因与分析。 测试: 第一部分:首页面

第二部分: 系统菜单:

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

第三部分:添加模块 选择 1,按照提示输入相应信息:

测试中遇到的问题:

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

第一次时提示后没有注意学号,姓名,性别等方面输入的合法性,后来注意到在源 代码中修改,其次,再输入时学号的重复问题也有一点麻烦,在经过和同学讨论后解决 了。
第四部分:从文件中读入 选择 2,如图:

测试中遇到的问题: 首先,在窗口中显示的信息排列混乱,所以又不断的调试,原因是 "\n%s\t%s\t%s\t%d\t%s\t%s"中对输出的细节没注意到。 第五部分:查询模块: 按照学号查询:

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

按照班号查询:

遇到问题:在代码中对查询的方法使用不熟练,曾用过链表方法,但是失败,后来 又改用数组方法,多次修改后终于成功。
原因:对 c 语言中的链表指针使用不熟练,理解掌握程度不够,有待提高。 第六部分:修改模块: 如图:

1

proved t hat a people and a natio n, if it does not have it s ow n s piritual pilla r, ther e is no unity of s piritua l support, it means that no soul, will l ose cohesi on a nd vitality. Fig uratively s peaking , a sa ck of potatoes , quantity ca nnot be too a team, form a joi nt force; only like g ranite, so closely United to form invincible , no difficult means of strength. Nati onal r ejuve nation of Chine se dream, not only embo dies t he common interests a nd pur suits, and covers a variety of groups and cla sse s, ha s a wi de applicability a nd i ncl usive , with a strong integrating force and lea d the for ce. She embodie s the aspirations of several ge nerations of Chine se, refle cting today ... Into sex and purity, and the i nevitabl e requirement of constantly impr oving t he party's governi ng ca pacity. Stre ngtheni ng the constr uction of t he adva nce d nat ure and purity, t he core problem is always maintaini ng the party's fle sh-a nd-bl ood ties with the masse s, s o that our party will alway s be t he most wholehearted s upport of the mass es.

Must take the fundame ntal interest s of the overwhelming majority of the pe opl e as the party all the starting point a nd ending point, t he party has alway s bee n a com mon fate with t he mas ses, thi s is t he magic wea pon for our party to al ways maintai n the a dvanced nature a nd purity. Stre ngthe ni ng the constructi on of party's adva nce d nat ure and purity and enhancing t he party's r uling a bility w ill event ually be im plemente d to realize , safeguar d and devel op t he fundamental i nterests of the overw helming maj ority of the people. Al l the w ork merits thi s is a meas ure of the party's fundame ntal standards, i s a meas ure of the party's adva nce d nat ure and purity standards . Be lieve who, depe ndi ng on who, w ho, sta ndi ng on the positi on of the over whelmi ng majority of the pe ople ar e always, alway s realize, safeguard a nd develop the fundamental intere sts of the overw helming maj ority of the pe ople , it is a touchstone of the Marxist party of j udgeme nt, is al so sig n of Marxist party is different from

other politica l parties . Marxist political party ha s a clear politi cal positi on a nd histori cal missi on: for the i nterests of the vast majority of people, committed to the fundamental interest s of the overwhelming majority of the pe opl e. From the day of the e stablis hment of the Chine se Communist Par ty, always a dhere t o bas ic pri nci ples of histori cal materialism, for t he interest s of the most pe ople a s their g oal, always serving a s its fundamental pur pose and value s. Fully tr ust the mas ses, closely rely on the mas ses mai ntain fles h-a nd-bl ood ties wit h the mas ses is always the source of our party full of vigor and vitality, is always the m ost determi ned i n the development of our party and our countr y.

Cons cienti ously accept s upe rvision by t he masse s, pay attenti on to l isten to t he mass es ' as sessme nt, whi ch it self was the party's a dvanced nat ure and purity into practi cal acti on t o re alize the fundame ntal interests of the over whelmi ng majority of th e pe ople . At prese nt, the party committees a nd

leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "prag matic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out th e party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he gre at rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the party, conscie ntiously st udy the Chi nese dream, leadi ng pe ople t o hard t o realize the Chi nese dream, mass e ducation a ctivities i n depth t he fundamental starti ng point and ending poi nt. Strengthe n the e ducation of the party's mas s line , hel ps to train t he collective consci ousne ss of the unity of the party and the people, playi ng the Chine se dream i deol ogical base s. Comrade Ma o Zedong stress ed that parties s hould have "com mon lang uage" socialist countries must have "unity of will". History ha s

修改后:

第七部分:删除模块: 如图:

修改后的结果:

1

proved that a people a nd a nati on, if it does not have its own spiritual pilla r, there i s no unity of spiritual support, it means that no s oul, will lose cohes ion a nd vitalit y. Figuratively s peaki ng, a sa ck of potat oes, quantity cannot be too a team, form a joi nt force; only like granite, so clos ely United t o form invincible , no difficult means of stre ngth. National rej uvenati on of Chine se dream, not only embodie s the common i nterests and pursuit s, and covers a variety of groups and cla sses , has a wi de a ppli cability a nd i ncl usive, wit h a strong integrating force a nd lea d the force. She em bodies the aspi rations of several ge nerations of Chine se, reflecti ng today .. . Into sex and purit y, and the i nevitable re quireme nt of constantly im proving the party's gover ning capa city. Stre ngthe ning the construction of the adva nce d nat ure and purit y, the core probl em i s always maintai ning the party's fles h-a nd-blood tie s with the masses , so t hat our party will always be the most wholehearte d support of the mass es.

Must take the fundame ntal interests of the overw helming majority of the pe ople a s the party all the starting poi nt and e ndi ng point, the party ha s always be en a common fate with t he masse s, this i s the magic we apon for our party to alw ays mai ntain the a dvanced nature a nd purity. Stre ngthe ning the construction of party's adva nce d nat ure and purity a nd e nha nci ng the party's ruli ng ability wil l eventua lly be impl emented to real ize, safeguard and devel op t he fundamental i nterests of the overwhelming majority of the people. All t he work merits t his is a meas ure of the party's fundament al standar ds, is a meas ure of the party's adva nce d natur e and purity sta ndar ds. Believe w ho, depe ndi ng on who, who, standing on the position of the over whelmi ng majority of the people are always , always realize , safeguard a nd develop the fundame ntal interests of the overw helming maj ori ty of the people, it is a t ouchst one of the Marxist party of judgement, i s also sign of Marxist party is different from

other political parties. Marxist pol itical party has a cl ear pol itical positi on a nd historical missi on: for the interests of the vast majority of pe ople , committed to t he fundamental intere sts of the ov erwhelmi ng majority of the people. From the day of the esta blis hment of the Chi nese Communist Party, always adhere to ba sic principle s of histori cal materialism, for the i nterests of the m ost pe ople a s their goal, always se rving as its fundame ntal purpose and value s. Fully trust the masse s, cl osely rely on the mas ses m aintai n flesh-and-blood tie s with the masses i s always the source of our party full of vigor and vitality, i s always the m ost deter mined in t he deve lopme nt of our party and our country.

Conscienti ously a cce pt supervi sion by the mas ses, pay attenti on to li sten to t he masse s ' asses sment, w hich itself was the party's adva nce d nat ure and purity i nto pra ctical a ction t o realize the fundamental interest s of the over whelmi ng majority of the people. At pres ent, the party committees a nd

9
leading ca dres a nd the Gover nment generally value the close relations wit h the mas ses, do a lot of pr oductive w ork, but there are still some

Accor ding to Office Party of mass line education pra ctice a ctivities le d group of unified arrangements , units main le d to for ca dres w orkers Shang a times party lect ure, due to himself level limited, only put t his stage conce ntrated lear ning of ex perience today and everyone common with lear ning exchange, pur pose is let w e further dee p understa ndi ng mass li ne of connotati on, i nsiste d party of mas s line, do ma sses w ork, foll owing mai n from four a as pe cts tol d: a, a nd full awarene ss party of mass line educati on practice activities of major mea ning Party's 18 major disti nct pr opose d to focus on the party's adva nce d nat ure and purity, i n the party, with "pragmatic a nd clea n for the people" as the main conte nt of the party's mass li ne a nd e ducational pra ctice.

This is comrade XI Ji npi ng as party General Secretary a nd a dher e to strictly a dministeri ng the party, strengthe n the party's major de cisi on i s in li ne wit h the public expectations a nd strengthe ning t he constructi on of learni ng-oriente d

service i nnovation of Marxist party's major de ployment, i s the important meas ure to adva nce t he great ca use of s ocia lism with Chi nese characteri stics . First, carry out the party's mass li ne i n education pra ctice, wa s carryi ng 18 of the party spir it, summon a powerful force for realizing t he great rej uvenation of the Chi nese nation the Chinese dre am of urgent ne eds . Party's 18 t o promote strategic de ployme nt to buildi ng sociali sm with Chine se characteristi cs, prese nts two 10 0-year g oal, namel y, by 2 020 China' s gross domesti c pr oduct and per capita i ncome of ur ban a nd rural re side nts in 2 0 10 on t he ba sis of double complete the buildi ng of a well -off society; the mi ddle of this century i nto a pr os perous, democrati c, civi lized a nd harmoni ous Socialist modern country, a nd on t his ba sis, the Chines e dream of realizi ng the great rej uvenati on of the Chi nese nation. 18 Congress of the part y, Comrade XI Ji npi ng repeate dly expounded t he Chine se dream. T he ba sic connotation of the Chines e dream, is t he

national prosperit y, nati onal revitalizati on, t he ha ppi nes s of the pe opl e, China important to foll ow is to kee p China Roa d, carry forwar d the s pirit and cohesi on stre ngth of China , dream dreams of the pe opl e of Chi na, but determi ned confidence, e nha nce s elf -aware ness, a chi eve self-relia nce, to bui ld a stronger Chi na, civi lization, harm ony, bea uty, China , Chi na, China.

Strategic conce ption of China wa s 18 the spirit of the e nrichment a nd development of the



友情链接: