功能:
显示对话框,让用户输入几组坐标。用户一次输入一组坐标,即两个坐标值,坐标值之间用逗号分隔,例如: 10,25
声明:
int* getCoords(int coords[], unsigned int pairs, LPCSTR
title = "Input
Coordinations");
参数:
coords[]: 存储用户输入的坐标:coords[0]:x1, coords[1]:y1; coords[2]:x2, coords[3]:y2;......
pairs: 想要输入的坐标对的数量。该函数可以按照调用者制定的数量不断要求用户输入坐标对
title: 对话框的标题。
返回值:
返回指向coords数组的指针。
示例: