string.h 的函數strncpy() ,需要兩個字串及一個整數n 當作參數,共有三個參數。 ... char t[25]; strncpy(t, s, 20); printf("%s\n", t); return 0; } /* 《程式語言 ...
確定! 回上一頁