It looks like you mean this:


count = 0;
while (1) { // or for(;;)
printf("Time? ");
scanf("%f", &points[count].time);
if ((points[count].time == 0)
...