How to make C++ stack library? [closed]

  c++, header-files, stack

I need to make my own stack library and header in C++.
I have for example this push function:

TStack * Push(TStack * TOP, int a_val) {
   TStack * l_hlp;
   l_hlp = new TStack;
   l_hlp->value = a_val;
   (*l_hlp).next = TOP;
   return l_hlp; };

Can I use it in library and what the header file should look like?

Source: Windows Questions C++