Find Jobs
Hire Freelancers

array

$10-15 USD

In Progress
Posted almost 21 years ago

$10-15 USD

Paid on delivery
-This must be done in C++ not C. Write a funtion called delete_repeats that has a partially filled array of characters as a formal parameter and that deletes all repeated letters from the array. Since a partially filled array requires two arguments, the funtion will actually have two formal paramters: an array parameter and a formal parameter of type int that gives the number of array positions used. When a letter is deleted, the remaining letters are moved forward to fill in the gap. This will create empty positions at the end of the array so that less of the array is used. Since the formal parameter is a partially filled array, a second formal parameter of type int will tell how many array positions are filled. This second formal parameter will be a call by reference parameter and will be changed to show how much of the array is used after the repreated letters are deleted. For example: char a[10]; a[0]='a'; a[1]='b'; a[2]='a'; a[3]='c'; int size=4; delete_repeats(a,size); After this code is executed, the value of a [0] is 'a', the value of a [1] is 'b', the value of [2] is 'c', and the value of size is 3. You may assume that the partially filled array contains only lowercase letters. Embed your function in a suitable test program. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. 4) Must be done in C++ not C. ## Platform Must work in Windows operating system.
Project ID: 2937426

About the project

10 proposals
Remote project
Active 21 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.
$6 USD in 14 days
4.9 (78 reviews)
4.6
4.6
10 freelancers are bidding on average $9 USD for this job
User Avatar
See private message.
$11.05 USD in 14 days
5.0 (19 reviews)
4.9
4.9
User Avatar
See private message.
$8.50 USD in 14 days
4.1 (54 reviews)
4.8
4.8
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (47 reviews)
4.5
4.5
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (18 reviews)
4.2
4.2
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (18 reviews)
3.5
3.5
User Avatar
See private message.
$11.90 USD in 14 days
5.0 (19 reviews)
3.2
3.2
User Avatar
See private message.
$12.75 USD in 14 days
5.0 (6 reviews)
2.3
2.3
User Avatar
See private message.
$4.25 USD in 14 days
5.0 (12 reviews)
2.3
2.3
User Avatar
See private message.
$8.50 USD in 14 days
5.0 (4 reviews)
0.9
0.9

About the client

Flag of UNITED STATES
United States
5.0
6
Member since Apr 17, 2003

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)
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.