buffet
This commit is contained in:
parent
c4bc6fada7
commit
b02c3d5faf
@ -11,7 +11,10 @@ struct tree {
|
||||
|
||||
|
||||
struct tree* read_tree(int* counter){
|
||||
|
||||
|
||||
int* c = counter;
|
||||
printf("%d\n", *c);
|
||||
char buffer[50];
|
||||
memset(buffer,0,50);
|
||||
char* r = fgets(buffer,50,stdin);
|
||||
@ -156,7 +159,7 @@ int main(){
|
||||
printf("Expert z bufetu to vie.\n");
|
||||
|
||||
struct tree* tree = NULL;
|
||||
int counter;
|
||||
int counter = 0;
|
||||
tree = read_tree(&counter);
|
||||
int count = count_leaves(tree);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user