WhaleSpunk

Untitled

May 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. int checkSequence(node* atual, node* node, int num_places){
  2. int i;
  3. int sequencia_aux[6];
  4. memset(sequencia_aux, 0, sizeof(sequencia_aux));
  5. for(i =0; i<num_places; i++){
  6. if(atual->sequencia[i] < node->sequencia[i] && atual->sequencia[i] !=-1){
  7.  
  8. return 0;
  9. }
  10. }
  11. for(i = 0;i<num_places; i++){
  12.  
  13. if(atual->sequencia[i] > node->sequencia[i] && atual->sequencia[i] !=-1){
  14. printf("\nÉ MAIOR");
  15. atual->sequencia[i] = -1;
  16. }
  17. }
  18. return 1;
  19.  
  20.  
  21. }
Add Comment
Please, Sign In to add comment