⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nodevisitor.m

📁 Comparison of C++, Java, Python, Ruby and MATLAB Using Object Oriented Example _comparelanguages
💻 M
字号:
classdef NodeVisitor < handle
    % Inheriting from handle class provides reference behavior
    methods
        function visit(self,node,depth)
            if ~isempty(node.val)
                fprintf('(%d:%d:%d), ', node.val, node.color, depth);
            end
        end
    end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -