资源描述:
《5编程题答案(5programmingquestionsanswer)》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、5编程题答案(5programmingquestionsanswer)ProgrammingquestionsrefertotheanswerNote:someoftheanswersintheanswerareprovidedbytheoriginalquestionitself,andthereaderonlyneedstofilloutthepartsthatarenotprovided.1,voidfun(char*w,intm)/*cancallthefunlfunctioncharleft.{Int
2、i;For(i=0;i=lands[i]・s<=h)B[j]=a[i];J++;}}Returnj;}1,fun(STUa[],STU*s){Inti;*s=a[O];For(i=l;is)*s=a[i];1,voidfun(char*ss){Inti二1;While(ss[iT]andss[i]){
3、If(ss[i]>二'a'ss[i]〈二'z'ss[i]+='A'-'a');I+=2;}}2,floatfun(floath)Longi二h*1000;If(i%10<5)return(i/10)/100.0;Elsereturn(i/10+1)/100.0;}1,doublefun(doubleEPS){Doublei=l,a=l,b=l,c=l,s=0;While(c>二eps){S+二c;A*二i;B*二2*i+l;C=a/b;Returns*2;1,intfun(intscore[],intm,int
4、below[])Inti,j=0,s=0;For(i=0;i〈m;i++)s+二score[iS/二m;For(i=0;i