class Stack { int *ptrStack; int top; int size; public: Stack(int = 10); // Default Constructor }; Stack::Stack(int s): size(s > 0 ? s ? : 10), top(-1), ptrStack (new int[size]) { // Body } main() { Stack<integer> intStack(7); }
Aabid wrote:size(s > 0 ? s ? : 10)
size(s > 0 ? s : 10)
ptrStack
size
class Stack { int size; int top; int *ptrStack; public: Stack(int = 10); // Default Constructor };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)