Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. const char* mais_palavras(vetor *vec){
  2. int i, p=0, k=0 , maior=0, imaior=0;
  3. velemento
  4. for(i=0; i< vec->tamanho; i++){
  5. while(strcmp(vec->elementos[i].str[p], "/0") != 0){
  6. if(strcmp(vec->elementos[i].str[p], " ") == 0) k++;
  7. if (k>maior) imaior=i;
  8.  
  9. }
  10. }
  11. }
  12.  
  13. return (vec->elementos[imaior].str);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement