In order to take a line as input, you can use scanf("%[^\n]%*c", s); where is defined as ... ^\n stands for taking input until a newline isn't encountered.
確定! 回上一頁