mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
feat: Add exit option
This commit is contained in:
parent
e0fa86816a
commit
c7ff9d66f1
@ -32,6 +32,7 @@ int main() {
|
|||||||
stack = new int[stack_size];
|
stack = new int[stack_size];
|
||||||
int ch, x;
|
int ch, x;
|
||||||
do {
|
do {
|
||||||
|
std::cout << "\n0. Exit";
|
||||||
std::cout << "\n1. Push";
|
std::cout << "\n1. Push";
|
||||||
std::cout << "\n2. Pop";
|
std::cout << "\n2. Pop";
|
||||||
std::cout << "\n3. Print";
|
std::cout << "\n3. Print";
|
||||||
|
Loading…
Reference in New Issue
Block a user