Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (ptr = front; ptr != NULL; ptr = ptr->next) {
- if (ptr->lrCount < ptr->next->lrCount) {
- strcpy(tempNode->word, ptr->word); //this work!?!?!
- tempNode->lrCount = ptr->lrCount;
- tempNode->rbCount = ptr->rbCount;
- strcpy(ptr->word, ptr->next->word); //this work!?!?!
- ptr->lrCount = ptr->next->lrCount;
- ptr->rbCount = ptr->next->rbCount;
- strcpy(ptr->next->word, tempNode->word); //this work!?!?!
- ptr->next->lrCount = tempNode->lrCount;
- ptr->next->rbCount = tempNode->rbCount;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement