consolidate all repos to one for archive
This commit is contained in:
16
semester_2/programiranje_2/primeri/Example01b/main.cpp
Normal file
16
semester_2/programiranje_2/primeri/Example01b/main.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user