Re: getting a whole line with scanf() ... Hi, Try this : char str[100]; scanf("%[^\n]",str); This statement will keep on reading text into 'str' ...
確定! 回上一頁