stack inside class problem

Hi,
Below is the header file a Palindrome class that I'm writing. Could someone please tell me what syntax I need to employ to be able to include and use a stack. I get the following error message

"Expected ; before token <" on the line where I try to create the empty stack s.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#include <stack>

#ifndef PALINDROME_H_INCLUDED
#define PALINDROME_H_INCLUDED

class Palindrome{

public:
bool isPalindrome(int n);

private:
stack<int> s;
int num;

};
Last edited on
std::stack<int> s;
thanks so much!
Topic archived. No new replies allowed.