Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. int cuvmax = 100;
  2. char x[201];
  3. char c[256][256];
  4. int n = 0;
  5. char *p = strtok(s, " ,.");
  6.  
  7. while(p)
  8. {
  9. if(strlen(p) < cuvmax)
  10. {
  11. cuvmax = strlen(p);
  12. strcpy(x, p);
  13. }
  14. if(strlen(p) % 2 == 1)
  15. strcpy(c[n++], p);
  16. p = strtok(NULL, " ,.");
  17. }
  18. cout << x << endl; /// c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement