Скачиваний:
14
Добавлен:
18.03.2018
Размер:
390 б
Скачать
#include <cstdlib>
#include <iostream>

#define LIST
#ifdef LIST
#include "stack_list.cpp"
#else
#include "stack_vector.cpp"
#endif

using namespace std;

int main(int argc, char *argv[])
{
    Stack stack;	
	int i;
	
    for (i=1; i<6; i++)
		stack.Push (i);
	while (!stack.Empty())
	{
		cout<<stack.Pop()<<' ';
	}
    system("PAUSE");
    return EXIT_SUCCESS;
}
Соседние файлы в папке Класс стэк