DarkSpect

RetiraMenores

Feb 2nd, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. void ReprDoc:: retiramenores(int n){   
  2.     if(!doc.vazia()){
  3.         FreqPalav x;
  4.         retiramenores(n, 1, x)
  5.     }else
  6.         cout<<"Não existe elementos na Lista" <<endl;
  7. }
  8.  
  9. void ReprDoc::retiramenores(int n, int k, FrequPalav x){
  10.     doc.encontra(k,x);
  11.     if(x){
  12.         if(x.getCont()<n){
  13.             doc.remove(k,x);
  14.             retiramenore(n,(k+1),x);
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment