[求助] 帮我看看这程序是错在那里了??
void main() { int nCount; int i; float temp; float *pBuffer;
scanf("Input a integer: %d",&nCount); /*读入nCount个数字*/ pBuffer =(float*)malloc(nCount * sizeof(float)); for(i=0; i<nCount;++i) { scnaf("%f",pBuffer+i); } for(i=0;i<nCount/2;++i) /*逆序*/ { temp= (*pBuffer+i); *(pBuffer+i)=(*pBuffer+nCount-i-1); *(pBuffer+nCount-i-1)=temp; } /*输出*/ for(i=0;i<nCount;++i ) { printf("%f",(*pBuffer+i)); } free(*pBuffer); /*释放内存*/ }