hello ..... please how can i write a function (PRINT) that takes a stack of integer and print its elements?

jonsca commented: Don't bump old threads just to tack your assignment on at the end. -1

Use push() and pop() operations to insert and delete elements in stack.
once you use them, u will be able to print elements of stack.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.