Find Jobs
Hire Freelancers

C++ (lazy vs eager)

$10-30 USD

Fullført
Lagt ut over 2 år siden

$10-30 USD

Betalt ved levering
As practice of the concept of lazy vs. eager, and of string implementations, make two simple C++ string classes. Internally, they should store an pointer to char or an array of characters as the internal C-type null terminated string, and a signed integer indicating the length. Write methods for string assignment, overload the < operator to compare two strings against one another, and write a length() method that returns the length. The two string classes are: * EagerString: will set the length of the string immediately, so that when you call length, you simply return the length * LazyString: on assignment, will set the length of the string to -1. If length() is eventually called, then it will do the work. Namely, it will check if it is negative 1, in which case it needs to do work, or if it is some other value, in which case it can return that value. The work involved in calculated the length of the string is a loop counting until you reach the null character of the string. Once you calculate that, assign it to the internal length variable so that you don't need to call it again.
Prosjekt-ID: 30919397

Om prosjektet

7 forslag
Eksternt prosjekt
Aktiv 3 år siden

Ønsker du å tjene penger?

Fordeler med budgivning på Freelancer

Angi budsjettet og tidsrammen
Få betalt for arbeidet ditt
Skisser forslaget ditt
Det er gratis å registrere seg og by på jobber
Tildelt til:
Brukeravatar
Hello i can make this job for sure. I have many experience writing code in this type of language. I can handle this task for sure.
$20 USD om 1 dag
0,0 (0 omtaler)
0,0
0,0
7 frilansere byr i gjennomsnitt $24 USD for denne jobben
Brukeravatar
Hello I am an expert in C++ and can handle your project professionally according to your requirements. Give me a chance to work on your project. If you have any query please inbox me. Thanks
$30 USD om 1 dag
4,9 (80 omtaler)
5,7
5,7
Brukeravatar
Hey! I am an expert in C/C++, OOP and Data structures. I would easily be able to help you regarding any task related to them. Kindly message me to discuss more details. Thank you.
$20 USD om 1 dag
5,0 (55 omtaler)
4,8
4,8
Brukeravatar
Hello. I wish you and your family would be safe from COVID-19. I checked your requirement carefully. I'm a Web App Development expert in 7+ years of experiences dealing with C/C++ Programming. So I'm very interested in your project. I offer high quality output in your required format at a very competitive price and can deliver to tight deadlines. Let's start the chat so that we can discuss more on the project. Thanks!
$30 USD om 1 dag
5,0 (7 omtaler)
3,8
3,8
Brukeravatar
I can help you to this code of string classes, this looks easy and doable.........seee my rating and reviews
$20 USD om 7 dager
4,9 (4 omtaler)
3,3
3,3
Brukeravatar
Hey I hope you are doing well. I'd like to do this project. I'm proficient in C# but had some C++ experience prior. I think I understand what you want. Please message me and I'll get started. Thanks.
$25 USD om 1 dag
5,0 (1 omtale)
0,7
0,7
Brukeravatar
Hi! I am a computer scientist with bachelor's degree with 5+ years of experience working with Java. Message me if you are interested.
$20 USD om 7 dager
0,0 (0 omtaler)
0,0
0,0

Om klienten

UNITED STATESs flagg
Queens, United States
0,0
0
Betalingsmetode bekreftet
Medlem siden jul. 16, 2021

Klientbekreftelse

Takk! Vi har sendt deg en lenke for at du skal kunne kreve din gratis kreditt.
Noe gikk galt. Vær så snill, prøv på nytt.
Registrerte brukere Publiserte jobber
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Forhåndsvisning innlasting
Tillatelse gitt for geolokalisering.
Påloggingsøkten din er utløpt og du har blitt logget ut. Logg på igjen.