I have setup the following header file to create a Stack which uses an Array. I get the following at line 7:
error: ISO C++ forbids declaration of 'Stack" with no type.
I thought the type was the input value. Appreciate your help. Thank you.
#ifndef ARRAYSTACKER_H_INCLUDED
#define ARRAYSTACKER_H_INCLUDED
// ArrayStacker.h: header file
1. class ArrayStack {
2. int MaxSize;
3. int EmptyStack;
4. int top;
5. int* items;
6. public:
7. Stacker(int sizeIn);
8. ~Stacker();
9. void push(int intIn);
10. int pop();
11. int peekIn();
12. int empty();
13. int full();
14. };
#endif // ARRAYSTACKER_H_INCLUDED