📄 tr_ln_remove_0.cc
字号:
// file: tr_ln_remove_0.cc// // isip include files//#include "train_link_node.h"#include "train_link_node_constants.h" // method: remove_cc//// arguments:// Train_Link_node* node : (input) the node pointer to remove//// return: a logical_1 indicating success//// this method removes the specified node//logical_1 Train_Link_node::remove_cc(Train_Link_node* node_a) { // check if this pointer is to be removed // if (node_a == this) { return ISIP_FALSE; } // remove the specified node pointer by adjusting link pointers // if (node_a->next_d != (Train_Link_node*)NULL) { node_a->next_d->prev_d = node_a->prev_d; } if (node_a->prev_d != (Train_Link_node*)NULL) { node_a->prev_d->next_d = node_a->next_d; } node_a->next_d = (Train_Link_node*)NULL; node_a->prev_d = (Train_Link_node*)NULL; // exit gracefully // return ISIP_TRUE;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -