16 lines
359 B
C++
16 lines
359 B
C++
#include <iostream>
|
|
#include "Stack01b.h"
|
|
|
|
int main() {
|
|
push(7);
|
|
push(1);
|
|
std::cout << "Pop from stack: ";
|
|
std::cout << pop() << " ";
|
|
std::cout << pop() << " ";
|
|
std::cout << std::endl;
|
|
if (isEmpty())
|
|
std::cout << "Stack is empty" << std::endl;
|
|
else
|
|
std::cout << "Stack isn't empty" << std::endl;
|
|
return 0;
|
|
} |