ftinclude\r#include ftinclude\r#include

全文预览

计算机二级编程题库专业资料

上传者:火锅鸡 |  格式:pdf  |  页数:110 |  大小:7899KB

文档介绍
\rclrscr();\rprintf("Inputa,b:");scanf("%d%d”,&a,EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r&b);\rfun(a,b,&c);\rprintf("Theresultis:%ld\n”,c);\r}\r100>ftinclude<stdio.h>\r#include<string.h>\r#include<conio.h>\rvoidMyswap(char*s)\r{char*sp,*st,ch;\rsp=s;\rst=s+strlen(s)-l;\rwhile(sp<=st)\r{ch=*sp;*sp=*st;*st=ch;sp++;st;}\r}\rvoidfun(char*a,char*b,char*c)\r(\rcharsi[100],s2[100],*sa,*sb;\rstrcpy(si,a);\rstrcpy(s2,b);\rMyswap(si);Myswap(s2);\rsa=sl;sb=s2;\rwhile(*sa//*sb)EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r{if(*sa){*c=*sa;c++;sa++;}\rif(*sb){*c=*sb;c++;sb++;}\r}*c=0;\rmain()\r{charsl[100],s2[100],t[200];\rclrscr();\rprintf("\nEntersistring:");scanf(Ès”,si);\rprintf("\nEnters2string:");scanf('%s”,s2);\rfun(si,s2,t);\rprintf("\nTheresultis:%s\n',t);

收藏

分享

举报
下载此文档