全文预览

二级C语言题库2

上传者:菩提 |  格式:pdf  |  页数:76 |  大小:6100KB

文档介绍
%d",p->data);\rp=p->next;\r)\rprintf("\n");\r)\rmain()\r{NODE*head;\rhead=Creatlink(8,22);\routlink(head);\r)\r\n@\r#include<stdio.h>\r#include<string.h>\r#defineN80\rintfun(char*s)\r()\rmain()\r{charlinelN];intnum=0;voidNONO();EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rprintf("Enterastring:\n");gets(line);\rnum=fun(line);\rprintf("Thenumberofwordis:%d\n\n",num);\rNONO();\r)\rvoidNONO()\r{/*UVWFILE*rf,*wf;inti,num;charline[N],*p;\rrf=fopen("K:\k01\24010001\in.dat","r");\rwf=fopen("K:\kO1W24010001\out.dat","w");\rfor(i=0;i<10;i++){\rfgets(line,N,rf);\rp=strchr(line,4\n5);\rif(p!=NULL)*p=0;\rnum=fun(line);\rfprintf(wf,"%d\n",num);\r)\rfclose(rf);fclose(wf);\r)\r*/

收藏

分享

举报
下载此文档