chore: migrate

This commit is contained in:
2025-12-21 10:50:53 +07:00
parent 534d59a44e
commit ecdb490c35
16 changed files with 868 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "Stack.h"
Stack::Stack()
{
stack = new List;
}
void Stack::push(int newdata)
{
stack->addFirst(newdata);
}
int Stack::pop()
{
int ret = stack->returnFirst();
stack->removeFirst();
return ret;
}
Stack::~Stack()
{
delete stack;
}