C++ split分割字符串函數 將字符串綁定到輸入流istringstream,然后使用getline的第三個參數,自定義使用什么符號進行分割就可以了。 2、使用strtok函數。 strtok() ...