c语言课程设计 c语言完结篇课程设计5.doc

  1. 1、本文档共36页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
c语言课程设计 c语言完结篇课程设计5

c语言课程设计 c语言完结篇课程设计5 导读:就爱阅读网友为您分享以下“c语言完结篇课程设计5”的资讯,希望对您有所帮助,感谢您对92的支持! #include quot;stdio.hquot; #include quot;stdlib.hquot; #include quot;string.hquot; #include quot;ctype.hquot;int b(int count); void c(char *pt[], int count); int check(char arr[], int count); void storage(char *pt[], int count);#define ROWS 256 #define COLS 32 static FILE *fp; static char a[ROWS][COLS]; char get_option(void); int n;char word[20];void add();void browse();void order();void search();void save();int load();void menu() {int n,w;do{puts(quot;\t\t*****************MENU***************/n/nquot;);puts(quot;\t\t\t1.Enter new wordquot;);puts(quot;\t\t\t2.browse all wordquot;);puts(quot;\t\t\t3.order wordquot;);puts(quot;\t\t\t4.search wordquot;);puts(quot;\t\t\t5.Exitquot;);puts(quot;\n\n\t\t********************************/nquot;);printf(quot;choice your number (1-5):[]\b\bquot;);scanf(quot;%dquot;,amp;n);if(nlt;1||ngt;6){w=1;getchar();}else w=0;}while(w==1);switch(n){case 1:add();break;case 2:browse();break;case 3:order();break;case 4:search();break;case 5:exit(0);}}void main() {menu();}void order(){int i,j,k;char c[20];if((n=load())==0){printf(quot;\nCannot open file!\nquot;);exit(0);}for(i= 2.backquot;);scanf(quot;%dquot;,amp;k);if(k==1)browse();else if(k==2)menu();}void browse() {int i,w;if((n=load())==0) {printf(quot;\nCannot open file!\nquot;);exit(0);}for(i=0;ilt;n-1;i++)printf(quot;%s/nquot;,word[i]);puts(quot for(i=0;ilt;n;i++){if(strcmp(word[i],c)==0)printf(quot;the word has already exist!\nquot;);else strcpy(word[i],c);save(n+1);printf(quot;now choose what you will do next?\n\t1).add another 2).back menu []\b\bquot;);scanf (quot;%dquot;, amp;x);if(xlt;1||xgt;3)w2=1;else w2=0;}while(w2=0)switch(x){case 1:add();break;case 2:menu();break;case 3:order();break;}}void search() {int i,x,y;char vs[20];if((n=load())==0) {printf(quot;\nCannot open file!\nquot;);exit(0);}printt;);printf(quot;now?1):one more 2):back 3):exitquot;);scanf(quot;%dquot;,amp;x);switch(x){ c

文档评论(0)

raojun00007 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档