Stack Applications in C++: Determining Palindromes

Mike McMillan
4 min readMar 27
Photo by Iva Rajović on Unsplash

In this article I’m going to demonstrate how to use the Stack class from the C++ Standard Template Library (STL) to determine if a string is a palindrome. Let’s get started.

Stack Class Review

The Stack is a data structure that stores data using a Last-in, First-out data flow. What this means is that the last data stored in the stack is the…

Mike McMillan

Mike McMillan writes about computer programming and running. See more of his writing and courses at