buffet
This commit is contained in:
		
							parent
							
								
									5c57c8a8da
								
							
						
					
					
						commit
						e90255eca1
					
				| @ -36,7 +36,7 @@ struct tree* read_tree(){ | |||||||
| } | } | ||||||
| struct tree* search(struct tree* this){ | struct tree* search(struct tree* this){ | ||||||
|      |      | ||||||
|     char c = getchar(); |     int c = getchar(); | ||||||
|        |        | ||||||
|     if(this->left != NULL && this->right != NULL){ |     if(this->left != NULL && this->right != NULL){ | ||||||
|         if(c == 'a'){ |         if(c == 'a'){ | ||||||
| @ -47,7 +47,6 @@ struct tree* search(struct tree* this){ | |||||||
|             printf("%s\n", this->right); |             printf("%s\n", this->right); | ||||||
|             this->right = search(this->right);  |             this->right = search(this->right);  | ||||||
|         }  |         }  | ||||||
|      |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   |   | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user