Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main()
- {
- char s[256],*p,sep[]=" ,;";
- cin.get(s,256);
- p=strtok(s,sep);
- while(p!=NULL)
- {cout<<p<<endl;
- p=strtok(NULL,sep);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement