📜  strtok 的使用 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:45.939000             🧑  作者: Mango

代码示例1
#include 
#include 

int main ()
{
  char str[] ="test string.";
  char * test;
  test = strtok (str," ");
  while (test != NULL)
  {
    printf ("%s\n",test);
    test= strtok (NULL, " ");
  }
  return 0;
}