📄 lxt_tree_3.cc
字号:
// file: lxt_tree_3.cc//// function to count number of lex nodes in a tree//// isip include files//#include "lex_tree.h"#include "lex_tree_constants.h"// method: num_lexnodes_cc//// arguments: none//// return: an int_4 with number of nodes//// this method loops through all the children of the input node and// counts the number of lexical nodes at all the lower levels//int_4 Lex_tree::num_lexnodes_cc() { // number to count // int_4 numlx = (int_4)0; // if this is a valid tree // if (head_d != (Lex_node*)NULL) { numlx = head_d->num_nodes_cc(); } // return gracefully // return numlx;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -