摘要:
#include <iostream>using namespace std;void GetMem(char** p, int n){ *p = (char*)malloc(sizeof(char)*n);};void main(){ char c[] = "a"; char* ptr = c;//NULL; GetMem(&ptr, 100); strcpy(ptr,"hello!"); co... 阅读全文
posted @ 2011-02-24 17:46 alexkk2011 阅读(173) 评论(0) 推荐(0)