用 vector 存
while(scanf("%d,%d", &x, &y) != EOF)
{
.......
}