ITPub博客

首页 > 应用开发 > > c语言求大佬,这是怎么回事?是软件的问题吗?

c语言求大佬,这是怎么回事?是软件的问题吗?

作者:gamebus 时间:2019-07-17 09:41:00 0 删除 编辑

#include<stdio.h>

int main ()

{

int	*p1,*p2,*p,a,b;

printf("please enter tow integer number:");

scanf("%d,%d",&a,&b);

p1=&a;

p2=&b;

if(a<b)

{

p=p1;

p1=p2;

p2=p;

}

printf("a=%d,b=%d\n",a,b);

printf("max=%d,min=%d\n",*p1,p2);

return 0;

}#include<stdio.h>

int main ()

{

int	*p1,*p2,*p,a,b;

printf("please enter tow integer number:");

scanf("%d,%d",&a,&b);

p1=&a;

p2=&b;

if(a<b)

{

p=p1;

p1=p2;

p2=p;

}

printf("a=%d,b=%d\n",a,b);

printf("max=%d,min=%d\n",*p1,p2);

return 0;

}


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4687/viewspace-3154808/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-07-10

  • 博文量
    155
  • 访问量
    13187