TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
others::postfix_expression::Stack Class Reference

Creates an array to be used as stack for storing values. More...

Collaboration diagram for others::postfix_expression::Stack:
[legend]

Public Attributes

std::array< float, 20 > stack {}
 Array which will be used to store numbers in the input.
 
int stackTop = -1
 Represents the index of the last value added to array. -1 means array is empty.
 

Detailed Description

Creates an array to be used as stack for storing values.

Definition at line 32 of file postfix_evaluation.cpp.

Member Data Documentation

◆ stack

std::array<float, 20> others::postfix_expression::Stack::stack {}

Array which will be used to store numbers in the input.

Definition at line 34 of file postfix_evaluation.cpp.

34{};

◆ stackTop

int others::postfix_expression::Stack::stackTop = -1

Represents the index of the last value added to array. -1 means array is empty.

Definition at line 35 of file postfix_evaluation.cpp.


The documentation for this class was generated from the following file: