Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > IT форум > Помощь студентам
Регистрация

Восстановить пароль

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 01.11.2009, 14:44   #1
Kevlar
Новичок
Джуниор
 
Регистрация: 01.11.2009
Сообщений: 1
По умолчанию Use two queues to implement a stack C++

Ребята помоги написать прогу, вот задание и это на завтра....
Use two queues to implement a stack C++ with the following functions:
push(x) : insert the item x to the top of the stack
pop() : delete the most recently inserted item from the stack
top() : display the top stack item (no pop() operation)
display() : sequentially display all items in the stack,(no pop() operation)
Note
Do not use Standard Template Library (STL) in this assignment. In other words, implement the queue operations (i.e. euqueue(), dequeue(), etc.),and these operations are then used to simulate the behavior of a stack.
For simplicity, this stack only accepts items of an Integer data type.
The main program will take the command-line arguments: input filename and output filename.
Кто может помочь?
Kevlar вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Stack Overflow Neeter БД в Delphi 2 03.06.2009 00:39
Stack OverFlow Tanya2008 Общие вопросы Delphi 6 11.05.2009 15:16
Помогите со Stack МаксMorfey Помощь студентам 0 10.05.2009 16:37
STACK и QUEUE vo_sa Общие вопросы C/C++ 3 25.03.2009 11:45
Stack Overflow??? Рустам Общие вопросы Delphi 7 01.04.2008 17:24