1
0
mirror of https://github.com/Didnelpsun/CS408.git synced 2026-06-16 23:17:21 +08:00

更新代码

This commit is contained in:
Didnelpsun
2021-09-16 23:44:37 +08:00
parent 74939da6df
commit 5ef6337176
9 changed files with 193 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ public:
bool SetData(element_type data);
// 取数据
element_type GetData();
element_type GetData() const;
// 设置指针
bool SetNext(LinkStackNode* next);
@@ -40,7 +40,7 @@ bool LinkStackNode::SetData(element_type data) {
return true;
}
element_type LinkStackNode::GetData() {
element_type LinkStackNode::GetData() const {
return this->_data;
}