全文预览

二级c语言题库答案

上传者:梦溪 |  格式:pdf  |  页数:102 |  大小:8916KB

文档介绍
uot;->%d",p->data);\rp=p->next;\r)\rprintf("\n");\r)\rmain()\r{NODE*head;\rhead=Creatlink(8,22);\routlink(head);\r)\r1\r23@\r#include<stdio.h>\r#include<string.h>\r#defineN80\rintfun(char*s)\r(\r)\rmain()\r{charline[N];intnum=0;voidNONO();printf("Enterastring:\n");\rgets(line);\rnum=fun(line);\rprintf("Thenumberofwordis:%d\n\n",num);\rNONO();EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rvoidNONO()\r{/*_`a6'FILE*rf,*wf;inti,num;charline[NJ,*p;\rrf=fopen(&quol;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,An5);\rif(p!=NULL)*p=0;\rnum=fun(line);\rfprintf(wf,"%d\n",num);\r)\rfclose(rf);fclose(wf);

收藏

分享

举报
下载此文档