Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cuvmax = 100;
- char x[201];
- char c[256][256];
- int n = 0;
- char *p = strtok(s, " ,.");
- while(p)
- {
- if(strlen(p) < cuvmax)
- {
- cuvmax = strlen(p);
- strcpy(x, p);
- }
- if(strlen(p) % 2 == 1)
- strcpy(c[n++], p);
- p = strtok(NULL, " ,.");
- }
- cout << x << endl; /// c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement