📜  带有空格的scanf - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:39.944000             🧑  作者: Mango

代码示例1
//gets input including whitespace [50]-1 for null, until \n
scanf("%49[^\n]", userInput);