有2處錯誤,在注釋中顯示#include#includeintmain(void){intn;char*p;puts("請輸入您要輸入字符串的字符個數:");scanf("%d",&n);//既然用char*,應統一,不能使用sizeof(int)p=(char*)malloc(n*sizeof(char));for(inti=0;i=0;i--){printf("%c\t",p[i]);}free(p);system("pause");return0;}
@lijinpeng
頂0
加入收藏
相關問答推薦