Use: fgets (name, 100, stdin);. 100 is the max length of the buffer. You should adjust it as per your need. Use: scanf ("%[^\n]%*c", name);.
確定! 回上一頁