- 42
- 0
- 约1.24万字
- 约 17页
- 2019-06-02 发布于浙江
- 举报
#includestdio.h
#includestdlib.h
#includestring.h
#includemath.h
/*
int main()
{
int *p1,*p2,*p3,*t,a,b,c;
printf(enter three number:);
scanf(%d %d %d,a,b,c);
p1=a;p2=b;p3=c;
if(ab)
{t=p1;p1=p2;p2=t;}
if(ac)
{t=p1;p1=p3;p3=t;}
if(bc)
{t=p2;p2=p3;p3=t;}
printf(sort number:%d %d %d\n,*p1,*p2,*p3);
}
*/
/*
#define N 20
int main()
{
char *p1,*p2,*p3,*t,a[N],b[N],c[N];
printf(enter three strings:);
scanf(%s %s %s,a,b,c);
p1=a;p2=b;p3=c;
if(strcmp(a,b)0)
{t=p1;p1=p2;p2=t;}
if(strcmp(a,c)0)
{t=p1;p1=p3;p3=t;}
if(strcmp(b,c)0)
{t=p2;p2=p3;p3=t;}
printf(sort string:%s %s %s\n,p1,p
原创力文档

文档评论(0)