Find Jobs
Hire Freelancers

C++ Help

$30-5000 USD

Completed
Posted almost 20 years ago

$30-5000 USD

Paid on delivery
Design and code a template container object and execute tests of this object as it contains different data types. The template object will model a data structure or container, an array is the most likely choice. The implementation of the array in the template will use dynamic allocation of memory with the new and delete operators. The template will have the following methods and members. **_METHODS: _**- A default constructor that will allocate memory and assume a size of 10 for the number of elements in the container. - A one-argument constructor that will allocate memory and allow the user to override the default size of the container. - A copy constructor that will perform a deep copy of the container object. - A destructor that will delete the dynamic memory used for the container. - Overloaded operator = that will also perform a deep copy of the template container. - Overloaded operator [] that will access individual elements of the container. - A generic method that will sort the elements in the container, using either the insertion sort or bubble sort technique. **_DATA: _**- Pointer to generic data type - Integer value representing the size of the container ## Deliverables Design and code a template container object and execute tests of this object as it contains different data types. The template object will model a data structure or container, an array is the most likely choice. The implementation of the array in the template will use dynamic allocation of memory with the new and delete operators. The template will have the following methods and members. **_METHODS: _**- A default constructor that will allocate memory and assume a size of 10 for the number of elements in the container. - A one-argument constructor that will allocate memory and allow the user to override the default size of the container. - A copy constructor that will perform a deep copy of the container object. - A destructor that will delete the dynamic memory used for the container. - Overloaded operator = that will also perform a deep copy of the template container. - Overloaded operator [] that will access individual elements of the container. - A generic method that will sort the elements in the container, using either the insertion sort or bubble sort technique. **_DATA: _**- Pointer to generic data type - Integer value representing the size of the container **_PROGRAM: _**- Declare a template container of data type int (built-in), and read data into array. - Sort int data in template using the generic sort method, and display the results. - Declare a template container of data type string objects (from c++ standard library), and read data into array. - Sort string data in template using the generic sort method, and display the results. - Declare a template container of data type fraction objects (user-defined), and read data into array. - Sort fraction data in template using the generic sort method, and display the results. **_NOTES: _**The Simpler the template container class is, the better it will work as a generic container object. Do not add any other methods or members to the template, except perhaps for private utility functions used by the generic sort method. 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Windows XP Microsoft Visual C++ 6.0
Project ID: 3198984

About the project

4 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$7 USD in 2 days
5.0 (1 review)
0.0
0.0
4 freelancers are bidding on average $42 USD for this job
User Avatar
See private message.
$102 USD in 2 days
4.9 (62 reviews)
5.4
5.4
User Avatar
See private message.
$17 USD in 2 days
5.0 (51 reviews)
5.3
5.3
User Avatar
See private message.
$42.50 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
11
Member since May 3, 2004

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.