W can read a string with spaces using scanf("%[^\n]s ",name); Here we can store both the first name ... sscanf(buffer, "%s%c%s", name, &seperator, surname);.
確定! 回上一頁