Find Jobs
Hire Freelancers

Out of bound array and index. Simple enough.

$30-50 USD

En cours
Publié il y a plus de 20 ans

$30-50 USD

Payé lors de la livraison
Design and implement the class myarray that solves the array index out of bound problem and also allows the user to begin the array index starting at any integer, positive or negative. Every object of the type "myarray" is an array of the type int. During execution when accessing an array component, if the index is out of bounds, the program must terminate with an appropriate error message/. Consider the following statements. myarray list(5); myarray mylist(2,13); myarray yourlist(-5,9); The statement in Line 1 declares LIST to be an array of 5, the component type is int and the components are list[0],list[1]....list[4]; The statement in line 2 declares MYLIST to be an array of 11 components, the component type is int and the components are mylist[2],mylist[3],....mylist[12]; The statement in line 3 declares yourlist to be an array of 14 components, the component type is int and the components are yourlist[-5], yourlist[-4].....,yourlist[0]....yourlist[8]. Write a program to test the class myArray. Bonus *NOT required*: -------------------- Redisgn the class myarray using class templates so that the class can be used in any application that requires arrays to process data. ## Deliverables Workable program. Source code, comments. Deadline for this program is in 16 hours. ## Platform Visual studio Windows 2000 pro.
N° de projet : 3031391

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 20 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
1 freelance propose en moyenne $43 USD pour ce travail
Avatar de l'utilisateur
See private message.
$42,50 USD en 1 jour
4,7 (15 commentaires)
3,8
3,8

À propos du client

Drapeau de UNITED STATES
United States
5,0
2
Membre depuis nov. 20, 2003

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.