Skip to content

Instantly share code, notes, and snippets.

@larsfu
Created August 3, 2010 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsfu/507281 to your computer and use it in GitHub Desktop.
Save larsfu/507281 to your computer and use it in GitHub Desktop.
for (vector<string>::iterator death = deaths.begin(); death != deaths.end(); death++)
{
int i = 1;
char * pch;
char buffer[10];
sprintf(buffer, "%s", *death);
pch = strtok(buffer, " ");
while (pch != NULL)
{
//if(i = 1)
//else
pch = strtok (NULL, " ");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment