Skip to content

Commit d3cbb10

Browse files
committed
Update stack.cpp
1 parent 6c2a2c4 commit d3cbb10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stack.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void stack::push(int x)
4141
{
4242
if (is_full())
4343
{
44-
std::cout << "Stack overflow" << std::endl;
44+
std::cout << "Stack overflow!" << std::endl;
4545
exit(EXIT_FAILURE);
4646
}
4747
std::cout << "Pushed=> " << x << std::endl;
@@ -53,7 +53,7 @@ int stack::pop()
5353
{
5454
if (is_empty())
5555
{
56-
std::cout << "Stack underflow" << std::endl;
56+
std::cout << "Stack underflow!" << std::endl;
5757
}
5858
std::cout << "Popped=> " << peek() << std::endl;
5959
return array[top--];

0 commit comments

Comments
 (0)