大家帮我看看这程序是那里出错了!!
# include <stdio.h># include <malloc.h>
int main(void)
{
int * p = (int *)malloc(sizeof(int));
*p = 10;
错误在这-->printf("%d\n", *P);
free(p);
return 0;
}
错误提示:: error C2065: 'P' : undeclared identifier
怎么错了??
2011-05-15 23:49
2011-05-15 23:54
2011-05-16 00:17
2011-05-16 18:53
2011-05-17 00:25