全文预览

C语言考试系统题库

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

文档介绍
gh?ijkljmnop\rqrs\rtu:vwxV0.0001y>zsV0.618056\r*/\r#include<stdio.h>\r#includenmath.h"\rvoidwwjt();\rfloatfun()\r/d*********Program**********/EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r/@******@***********@/\rmain()\r(\rprintf("y{%f\n",fun());\rwwjt();\r)\rvoidwwjt()\r(\rFILE*IN,*OUT;\rfloatfOUT;\rIN=fopen(',19.IN',,Y,);\rif(IN==NULL)\r(\rprintf("PleaseVerifyTheCurrerntDir..itMayBeChanged'1);\r)\rOUT=fopen(,,19.out,',"w");\rif(OUT==NULL)\r(\rprintf(''PleaseVerifyTheCurrentDir.,itMayBeChanged");\r)\rfOUT=fun();\rfprintf(OUT,"}An”,fOUT);\rfclose(IN);\rfclose(OUT);\r)\r---------------\rfloatfl=l,f2=l,f3;\rfloatrl=2,r2;\rdo\r{r2=rl;\rrl=fl/f2;\rf3=fl+f2;\rfl=f2;\rf2=f3;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r}while(fabs(rl-r2)>le-4);\rreturnrl;

收藏

分享

举报
下载此文档