📄 bt_free.m
字号:
function bt=bt_free(bt)
% BT_FREE
%
% bt=BT_FREE(bt) frees the memory allocated to the binary tree bt.
% Copyright (c) MathWorks Inc. 1998-2001. All rights reserved.
global bt_nil
if bt.left~=bt_nil
bt_free(bt.left);
end
if bt.right~=bt_nil
bt_free(bt.right);
end
if bt~=bt_nil
free(bt);
% illegal tree
bt=0;
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -