Initializacia
This commit is contained in:
		
							parent
							
								
									ed485b28e3
								
							
						
					
					
						commit
						ad59e52100
					
				@ -33,14 +33,14 @@ struct tree* load_tree() {
 | 
			
		||||
    return node;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void print_tree(struct tree* tree,int offset){
 | 
			
		||||
void print_tree(struct tree* tree, int offset){
 | 
			
		||||
    for (int i = 0; i < offset; i++){
 | 
			
		||||
        printf(" ");
 | 
			
		||||
    }
 | 
			
		||||
    printf("%s",tree->question);
 | 
			
		||||
    printf("%s", tree->value);
 | 
			
		||||
    if (tree->left){
 | 
			
		||||
        print_tree(tree->left,offset +3);
 | 
			
		||||
        print_tree(tree->right,offset +3);
 | 
			
		||||
        print_tree(tree->left, offset + 3);
 | 
			
		||||
        print_tree(tree->right, offset + 3);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user