Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. int main()
  5. {
  6. char s[256],*p,sep[]=" ,;";
  7. cin.get(s,256);
  8. p=strtok(s,sep);
  9. while(p!=NULL)
  10. {cout<<p<<endl;
  11. p=strtok(NULL,sep);
  12. }
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement