C++语法..

distribute storage memory

  • new 和malloc都返回指针;
  • malloc需要指定returned pointer type;
char *a=(char*)malloc(sizeof(char));
char *b=new char[6];	
  • how to distribute memory for multi-dimensional array pointer ~~

猜你喜欢

转载自blog.csdn.net/shuia64649495/article/details/132271494