>>17

#include <stdio.h>
#include <stdlib.h>

struct point{
double x;
double y;
};

int main()
{
struct point *cdl,*tmp;
int i, n;

printf("データの数は?: ");
scanf("%d", &n);

if((cdl = (struct point *)malloc(n * sizeof(struct point))) == NULL){
printf("メモリ確保に失敗しました。終了します。\n");
return 0;
}