c

来源:互联网 发布:超牛数据恢复免费版 编辑:程序博客网 时间:2024/06/04 19:33


#include <stdio.h>
void temp(int *p1, int *p2);
int main( )
{
    int a,b;
    scanf("%d,%d",&a,&b);
    temp(&a,&b);
    printf("%d %d\n",a,b);
    return 0;
}
void temp(int *p1, int *p2)
{
 int t;
 t=*p1;
 *p1=*p2;
    *p2=t;

}

0 0
原创粉丝点击