全文预览

全国计算机等级考试C语言――改错题

上传者:苏堤漫步 |  格式:pdf  |  页数:78 |  大小:5703KB

文档介绍
\rs->data=rand()%16s->next=p->next\rp->next=sp=p->next}\rp->next=NULLEvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rreturnh\r)\routlink(NODE*h,FILE*pf)\r{NODE*p\rp=h->next\rfprintf(pf,H\n\nTHELIST:\n\nHEAD")\rwhile(p){fprintf(pf,n->%dH,p->data)p=p->next}\rfprintf(pf,"\n")\r}\routresult(ints,FILE*pf)\r{fprintf(pf,"\nThesumofevennumbers@%d\n'\s)}\rmain()\r{NODE*headinteven\rhead=creatiink(12)head->data=9000outlink(head,stdout)even=fun(head)\rprintf(n\nTheresult:\nu)outresult(even,stdout)}\r100P`p?\nfun\r??@st¸¹œI#h€\rº‘0»pg¼½¾¿ÀÁ`°ÂI.\r/0@1h€a\rÃ38,b\r33.??TUNa\r33,b\r38.\r#include<stdio.h>\rintfun(int*x,inty)\r{intt\rt=xx=y83@t=*x*x=y\rretum(y)83@retum(t)\rmain()\r{inta=3,b=8\rclrscr()\rprintf(n%d,%d\nn,a,b)b=fun(&a,b)primf(" d,%d\n",a,b)

收藏

分享

举报
下载此文档