Stack characters

Is there a way to stack multiple characters?

Example:

// stack::top
#include <iostream>
#include <stack>
using namespace std;

int main ()
{
stack<char> mystack;
mystack.push('abc'); <---- stack only allows 1 character
cout << "mystack.top() is now " << mystack.top << endl;
system ("PAUSE");
return 0;
}

Any answers would be appreciated.
Use stack<string> instead.
Topic archived. No new replies allowed.