Its all about programming...
This post is for student who can use this simple code.
Link : http://www.codeproject.com/KB/cpp/Stack.aspx