GetMemory错误讲解(指针练习)

  #include <iostream> #include<string.h> using namespace std; void GetMemory(char *p) { p=(char *)malloc(100); }   int main(int argc, char *argv[]) { char *str=NULL; GetMemory(str);
相关文章
相关标签/搜索