This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SingleLinkedList.h" | |
int CompareData(Data info1, Data info2) { | |
if (info1.x == info2.x) return 0; | |
else if (info1.x > info2.x) return 1; | |
return -1; | |
} | |
void InitList(List& l) { | |
l.pHead = l.pTail = NULL; | |
} | |
bool isEmptyList(List l) { |