方法1:
char *a = new char[10];delete a;
方法2:
char a[10] = "";
变量内存分配
原文:http://www.cnblogs.com/laohehexiaohe/p/4268482.html