fgets 是會讀取回車換行符的。有時候我們並不希望在字符串中存在換行符。 #include int main (int argc,char *argv[]) { char str[30]=""; //sc.
確定! 回上一頁