代写 C++ data structure software Lab report

Lab report

Course:
Class Libraries and Data Structures
Semester:
1st semester of the academic year 2019-2020
Major:
Software Engineering
Class:
2018
Student Name:

Student ID:

Teacher:
ZHAO, Hengjun (赵恒军)

School of Computer and Information Science

Name
Introduction to C++ Containers
Date
Sep. 19,2019
Type
√ Confirmatory
√ Design
□Comprehensive
• Objective & Requirements
• Learn operator overloading in C++
• Understand dynamic memory allocation in C++; grasp the use of new and delete for memory allocation and reclaim; Grasp the use of pointers and arrays
• Understand the concept of containers
• Experimental environment (platform and software)
Windows 7 (or higher versions) + Visual Studio 2010 (or higher versions)
• Experimental content and design (Main Content, Procedure, Codes and Results)
• Task 1
• Overloading the operator ‘>’to rewrite the makesMoreThan method in the Employee class you defined in the last lab;
• Use your overloaded ‘>’to rewrite the findBestPaid method you defined in the last lab;

• Task 2
• In the employee container class sent you, implement a method remove(i) that can remove the item of index i in the container (Note that the first item is of index 0)
• Based on remove(i), implement a method removeEmployee() in the company class that allows the user to input an index i and then remove the employee of index i. (Note that the first employee is of index 0)
• Test your implementation in the main() function
• Result analysis and discussion(Analysis of experimental results and summing up the harvest and the existing problems)

Comments & Evaluation
Content & Design (A-E)

Procedure & Codes (A-E)

Results (A-E)

Analysis & Discussion (A-E)

Score (A-E):
Feedback comments: