源码简介: |
一个简单的机票预订方案的先决条件,目标和成果先决条件:学生应掌握以下必备技能。• 指针 - 使用指针间接引用和修改对象• 链表 - 理解的链表实现• 动态内存管理 - 使用new和delete目标:这项任务旨在加强学生的理解链表。结果:成功地完成这项任务的学生将掌握以下成果。• 了解链表的实现• 使用指针• 使用动态内存管理描述一个简单的机票预订程序应显示下列选项菜单:储备一票,取消预订,是否保留一个特定的人一票,并显示乘客。信息保持的名单按字母顺序排列的链接。在程序的一个简单的版本,假设保留只有一个航班,机票。在一个更全面的版本,将航班数量上没有限制。创建一个链表的每个节点包括一个指针链表的乘客的航班。任务写订票方案,根据上面的描述有更全面的版本。-A simple airline ticket reservation programPrerequisites, Goals, and OutcomesPrerequisites: Students should have mastered the following prerequisite skills.• Pointers- Using pointers to indirectly reference and modify objects• Linked Lists- Understanding of a linked list implementation• Dynamic Memory Management- Use of new and deleteGoals: This assignment is designed to reinforce the student s understanding of linked lists.Outcomes: Students successfully completing this assignment would master the following outcomes.• Understand implementation of linked lists• Use pointers• Use dynamic memory managementDescriptionA simple airline ticket reservation program should display a menu with the following options: reserve a ticket, cancel a reservation, check whether a ticket is reserved for a particular person, and display the passengers. The information is maintained on an alphabetized linked list of names. In a simpler version of t
|