#ifndef STACK_H #define STACK_H class Stack{ private: int size; int stack[size]; public: void push(int x); int pop(); } #endif
Standard input is empty
prog.cpp:6:6: error: invalid use of non-static data member 'Stack::size' int size; ^ prog.cpp:7:12: error: from this location int stack[size]; ^ prog.cpp:11:1: error: expected ';' after class definition } ^
Standard output is empty