changed numbers.c so that it works with new nextTreeData() function

This commit is contained in:
Jonas Hofmann 2025-12-13 16:35:36 +01:00
parent 686fe8d844
commit b69cfb0640
4 changed files with 4 additions and 3 deletions

BIN
doble.exe

Binary file not shown.

Binary file not shown.

View File

@ -31,13 +31,14 @@ static int existsInTree(TreeNode *root, unsigned int value)
unsigned int *data; unsigned int *data;
// Traversierung initialisieren // Traversierung initialisieren
nextTreeData(root); data = nextTreeData(root);
while ((data = nextTreeData(NULL)) != NULL) do
{ {
if (*data == value) if (*data == value)
return 1; return 1;
} } while ((data = nextTreeData(NULL)) != NULL);
return 0; return 0;
} }

BIN
numbers.o

Binary file not shown.