Skip to content

Instantly share code, notes, and snippets.

Created December 26, 2010 01:57
Show Gist options
  • Save anonymous/755148 to your computer and use it in GitHub Desktop.
Save anonymous/755148 to your computer and use it in GitHub Desktop.
//@eyny@tony01111299@
#include <stdio.h>
#include <string.h>
int main()
{
char s[450]={0},*c,*p;
while(gets(s)){
p=strtok(s," ");
c=strtok(NULL,"\n");
if(!p) break; // console 下的防爆模式
p=strtok(s,c);
while(p){
printf("%s\n",p);
p=strtok(NULL,c);
}
printf("\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment