malloc的不知道为什么会有问题
#include<stdio.h>#include<stdlib.h>
int main()
{
int max,i;
double*pp;
printf("ent number:");
scanf("%d",&max);
pp=(double *)malloc(max*sizeof(double));
while(i<max&&scanf("%lf",&pp[i])==1)
i++;
for(i=0;i<4;i++)
printf("%d\n",pp[i]);
free(pp);
return 0;
}