feat: Add exit option

This commit is contained in:
Panquesito7 2020-06-24 12:12:30 -05:00
parent e0fa86816a
commit c7ff9d66f1
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68

View File

@ -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";