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 a[100], separatori[]=".,|", *p;
- cin.get(a, 100);
- p=strtok(a, separatori);
- while(p)
- {
- cout<<p<<endl;
- p=strtok(NULL, separatori);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement