21 lines
377 B
C++
21 lines
377 B
C++
#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;
|
|
}
|