[新手求助]新编的小程序有问题,请帮忙看下
为什么调试能出来,运行就出不来结果呢,停在scanf那,出不来~~~~为什么??
#include<stdio.h>
#include<conio.h>
void swap(int *p1, int *p2)
{
int temp;
temp = *p1;
*p1 = *p2;
*p2 = temp;
}
int main()
{
int a,b;
int *p1,*p2;
scanf("%d,%d\n",&a,&b);
getch();
//a=3;
//b=4;
p1=&a;
p2=&b;
swap(p1,p2);
printf("The result is : %d,%d\n",a,b);
getch();
return 0;
}