mollc函数的代码 /* Note:Your choice is C IDE */ #include #include main() { char * str; if((str=(char *)malloc(50))==NULL) { printf("\n No enough memory to allocata for the string."); exit(1); } printf("\n Input the string:"); gets(str); puts(str); free(str); }