How to use stacks with c/c++