Im kind of lost here; Mingw gives me a "Expected a constructor,destructor or type conversion before '.'token"
main.cpp
Stack.hCode:#include <iostream> #include "Stack.h" Stack s; s.Pop(); //The error int main() { std::cout << "as"<< std::endl; return 0; }
Code:#ifndef STACK_H #define STACK_H #include <iostream> using namespace std; class Stack { public: int GetSize(); void Pop(); void Push(int x); int Peek(); Stack(); virtual ~Stack(); protected: private: int size; int data[]; }; #endif // STACK_H