السلام وعليكم ورحمه الله وبركاته
كل عام وانتم بخير :D
والله انا متفاجئه ومنبهره في مدى علمكم وثقافتكم ماشاءالله :rolleyes:
والله اتمنى من كل قلبي اصير يوم من الايام مثلكم ياررب
انا مثل ماقلت مبتدئة في البرمجه بس قاعده ابذل مجهود كبير علشان اصير توب فية
بس مشكلتي لغتي الانجليزيه ضعيفه يعني مو ذاك الزود وهذا مسببلي مشكله
يعني لازم احد يترجملي السؤال علشان احله
الحين انا عندي سؤال وابي احله بنفسي والله بس ماني فاهمته وكل الي ابيه احد يترجمه لي بس ترجمه علشان احله
الله يخليكم اعتبروني اختكم وطالبه خدمه بسيطه جدا جدا ماراح اخذ من وقتكم كثير وهذا هو السؤال:
The word deque
(pronounced either “deck” or “DQ”) is a shortened form of double-ended queue and denotes a list in which entries can be added or removed from either the first or the last position of the list, but no changes can be made elsewhere in the list. Thus a deque is a generalization of both a stack and a queue. The fundamental operations on a deque are append_front, append_rear, serve_front, serve_rear, retrieve_front, and retrieve_rear.
1. Write the methods needed to implement a deque in a circular array. Consider the class Deque as derived from the class Queue.
2. In the main program initialize a deque with the following letters: D A T A
3. Write a menu driven that permits to the user to:
• A- Append the next input character to the rear.
• P- Push the next input character to the front.
• S- Serve the front of the queue.
• X- Extract the rear of the queue.
• R- Retrieve and print the front entry.
• W- Retrieve and write the rear entry.
• Q- quit.
تكفون لا تطنشوني عارفه انه طلب غبي بس استحملوني