想知道这个是为什么,谢谢!
#include <stdio.h> #include <string.h> #include <alloc.h>
void main() { char *buffer,*str; buffer=(char*)malloc(sizeof(buffer));/*这句是用来做什么的,不用为什么就无法正确显示?*/ str=memset(buffer,'A',10); printf("%s\n",str); }
#include <stdio.h> #include <string.h> #include <alloc.h>
void main() { char *buffer,*str; buffer=(char*)malloc(sizeof(buffer));/*这句是用来做什么的,不用为什么就无法正确显示?*/ str=memset(buffer,'A',10); printf("%s\n",str); }
2005-02-11 23:29

2005-02-11 23:35
2005-02-12 00:10
2005-02-14 19:20
2005-02-15 09:00