关于C++队列QUEUE OPERATIONS的一个题目

来源:百度知道 编辑:UC知道 时间:2024/06/07 04:48:38
Write a program (YourName_queue.cpp) to implement a circular queue (max 5) to capture the taxis in a queue. Program should maintain the following information:
 License Number (max. 7 characters)
 Driver Name (max. 20 characters)
 Taxi Type (ie Comfort, CityCab, SMRT, Premier, Transcab)
Write a main program that display a menu of choices for user to perform the queue operations. You are to use an appropriate data structure to meet all requirements. Your program shall provide the following functions:
QUEUE OPERATIONS
1. Initialize queue
2. Insert a taxi at back of queue
3. Remove a taxi in front of queue
4. Count number of taxis in queue
5. View all taxis in queue
6. View taxi types in queue
7. Is queue empty?
8. Is queue full?
9. Quit
Note: You are to stick to the order & use the menu number, i.e 1 to 9
Functional requirements
1. Initialize queue. This option initializes/clears a

这部分东西叫作数据结构,是利用语言来实现一些功能。
如果一本书是讲语言的话,一般是不会讲数据结构的。
数据结构是十分有用的,合理的数据结构能够优化程序执行的空间和时间需求。

你可以先学C++,再学用C++描述的数据结构,慢慢来吧。
学编程差不多都会经历这样的过程。

算法不难,但是要写很长的代码。

这个光给金币恐怕不行吧。