摘要: 错误案例:voidGetmemery(char*p){p=(char*)malloc(100);}voidmain(){char*str=NULL;Getmemery(str);strcpy(str,"hello world");printf("%s",str);free(str);}错误原因:ch... 阅读全文
posted @ 2014-11-26 11:14 凤凰连城 阅读(1096) 评论(0) 推荐(0) 编辑