chore: migrate

This commit is contained in:
tiennm99 committed 2025-12-21 10:50:53 +07:00
1 parent 5b3a8665e6
commit a34848ef78
16 files changed
+868

No files matched your search

+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;
}