W can read a string with spaces using · scanf("%[^\n]s ",name); · Here we can store both the first name and last name with space, of a person. · scanf("%s[^x]s", ...
確定! 回上一頁