ΪʲôֵûÓб»½»»»£¿
#include"stdio.h"main()
{
void swap(int *p1,int *p2);
int a,b;
int *pointer_1, *pointer_2;
scanf("%d,%d",&a,&b);
pointer_1=&a;
pointer_2=&b;
if(a<b) swap(pointer_1,pointer_2);
printf("\n%d,%d\n",*pointer_1,*pointer_2);
}
void swap(int *p1,int *p2)
{
int *p;
p=p1;
p1=p2;
p2=p;
}
¼ÈÈ»ÔÚº¯ÊýÖеØÖ·±»½»»»ÁË ÄÇôÊä³öµÄÓ¦¸ÃºÍÊäÈëµÄÊÇÏà·´µÄѽ£¡
²»ÊǺܶ®
Çë½Ì£¡