a陣列不能直接等於某個字串. 合法寫法. 由使用者輸入資料至字元陣列內. char a[10];. a=”APPLE”; //不合法. char a[]=”APPLE”;. char s[50];. scanf(“%s”, s);.
確定! 回上一頁