generated from freudenreichan/info2Praktikum-DobleSpiel
Datentyp fuer Strukturvariable data auf void geandert
This commit is contained in:
parent
c860a197ee
commit
b3c9fec7ba
@ -19,7 +19,7 @@
|
|||||||
// Uses your binary search tree implementation to check for duplicates while generating numbers.
|
// Uses your binary search tree implementation to check for duplicates while generating numbers.
|
||||||
unsigned int *createNumbers(unsigned int len)
|
unsigned int *createNumbers(unsigned int len)
|
||||||
{
|
{
|
||||||
if (len < 2)
|
if (len < 2)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
|
|||||||
5
stack.h
5
stack.h
@ -9,9 +9,10 @@ The latest element is taken from the stack. */
|
|||||||
|
|
||||||
//TODO: passenden Datentyp als struct anlegen
|
//TODO: passenden Datentyp als struct anlegen
|
||||||
typedef{
|
typedef{
|
||||||
int* data;
|
void* data;
|
||||||
struct StackNode *next;
|
struct StackNode *next;
|
||||||
}StackNode;
|
}StackNode;cmd
|
||||||
|
|
||||||
|
|
||||||
// Pushes data as pointer onto the stack.
|
// Pushes data as pointer onto the stack.
|
||||||
StackNode *push(StackNode *stack, void *data);
|
StackNode *push(StackNode *stack, void *data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user