consolidate all repos to one for archive
This commit is contained in:
20
semester_2/programiranje_2/primeri/Example18/main.cpp
Normal file
20
semester_2/programiranje_2/primeri/Example18/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <iostream>
|
||||
#include "Stack.h"
|
||||
|
||||
int main() {
|
||||
Stack myStack(10);
|
||||
char plus = '+';
|
||||
char c = 'c';
|
||||
//int a=65;
|
||||
//double b=1.23;
|
||||
|
||||
myStack.push(&plus);
|
||||
myStack.push(&plus);
|
||||
myStack.push(&c);
|
||||
//myStack.push(&a);
|
||||
//myStack.push(&b);
|
||||
while (!myStack.empty()) {
|
||||
std::cout << *(char*)myStack.pop() << " ";
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user