changed numbers.c so that it works with new nextTreeData() function
This commit is contained in:
parent
686fe8d844
commit
b69cfb0640
BIN
highscore.o
BIN
highscore.o
Binary file not shown.
@ -31,13 +31,14 @@ static int existsInTree(TreeNode *root, unsigned int value)
|
||||
unsigned int *data;
|
||||
|
||||
// Traversierung initialisieren
|
||||
nextTreeData(root);
|
||||
data = nextTreeData(root);
|
||||
|
||||
while ((data = nextTreeData(NULL)) != NULL)
|
||||
do
|
||||
{
|
||||
if (*data == value)
|
||||
return 1;
|
||||
}
|
||||
} while ((data = nextTreeData(NULL)) != NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user