全文预览

二级C语言题库

上传者:叶子黄了 |  格式:pdf  |  页数:128 |  大小:11301KB

文档介绍
);\routlink(head);\r)\r\n@\r#include <stdio.h>\r#include <string.h>.\r#define N 80\rint fun( char *s)\r(\r}\rmain()\r{ char line[N]; int num=0;void NONO ();\rprintf("Enter a string :\n"); gets(line);\rnum=fun( line );\rprintf("The number of word is : %d\n\n",num);\rNONO();\r)\rvoid NONO ()\r{/* FGH FILE *rf, *wf; int i, num ; char line[N], *p ;\rrf = fopen("K:\k01\24010001\in.dat","r");\rwf = fopen("K:\kO 1W24010001 \out.dat","w");\rfor(i = 0 ; i < 10 ; i++) {\rfgets(line, N, rf);\rp = strchrQine, '\n ');\rif(p != NULL) *p = 0;\rnum = fun(line);\rfprintf(wf, "%d\n", num);\r)\rfclose(rf); fclose(wf);\r)\r*/

收藏

分享

举报
下载此文档