Find Jobs
Hire Freelancers

Debug short c++ code

$10-30 USD

Closed
Posted about 7 years ago

$10-30 USD

Paid on delivery
Please can you fix the bug where i'm getting for some values of orderReverse -1 original value from order ? //main int order[4] = { 0 }; while (nDataLen >= 2 * 4) { func3(order, readFile); unsigned int previous = 0; unsigned int w = 1; for (int i = 0; i < 4; i++) { previous += w * (order[i]); w *= 256; } } char bitStringr[33] = {'0'}; Get_string32_from_SIZE4_VALUE(bitStringr, previous); int orderReverse[56]; orderReverse[0] = Get_CHAR_ARRAY_SIZE4_FROM_VALUE(bitStringr); int ic = 0; char bitStringr1[33] = {'0'}; for (int i = 8; i < 16; i++ ) { bitStringr1[ic] = bitStringr[i]; ic++; } orderReverse[1] = Get_CHAR_ARRAY_SIZE4_FROM_VALUE(bitStringr1); ic = 0; for (int i = 16; i < 24; i++) { bitStringr1[ic] = bitStringr[i]; ic++; } orderReverse[2] = Get_CHAR_ARRAY_SIZE4_FROM_VALUE(bitStringr1); ic = 0; for (int i = 24; i < 32; i++) { bitStringr1[ic] = bitStringr[i]; ic++; } orderReverse[3] = Get_CHAR_ARRAY_SIZE4_FROM_VALUE(bitStringr1); //Functions void Get_string32_from_SIZE4_VALUE(char* sz_output, unsigned int val) { sz_output[0] = 0; unsigned int v = 1; unsigned int n = 0; for (int i = 0; i < 32; i++) { sz_output[n++] = (val & v) ? '1' : '0'; v <<= 1; } sz_output[n] = 0; } char Get_CHAR_ARRAY_SIZE4_FROM_VALUE(char* sz_input) { unsigned short v = 1; unsigned short n = 0; for (int i = 0; i < 32; i++) { n += (sz_input[i] == '1') ? v : 0; v <<= 1; } return n; } void func3(int* dst_Array, FILE* src_InputFile) { char buf[8];///////////////////////////// fread(buf, 1, 8, src_InputFile); for (int i = 0; i < 4; i++) { dst_Array[i] = buf[i]; } }
Project ID: 13810081

About the project

17 proposals
Remote project
Active 7 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
17 freelancers are bidding on average $26 USD for this job
User Avatar
Hello I'm interesting your project very well I'm a Good C++, Java, Debug, Math, Algorithm expert. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks
$35 USD in 1 day
4.9 (714 reviews)
8.9
8.9
User Avatar
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$30 USD in 0 day
4.9 (144 reviews)
7.0
7.0
User Avatar
I am a Contest Programmer and My fav language is c/c++. I can solve your problem. and I am an ex-software developer in a reputed company in Bangladesh and working in this field for 2 years. Through this, I have gathered a good knowledge about this field. I think I will be able to please you with my work in no time.
$15 USD in 1 day
5.0 (5 reviews)
3.5
3.5
User Avatar
Good day, I'm pretty sure your project was posted twice and so I'm bidding on both. This will more or less be a repeat of what I put on the previous bid: I'd be happy to assist you with this task. I have extensive experience in C++ as it was the primary language used for all projects while completing my degree (education) in Canada. Please PM me to discuss further and I can get started right away! Thanks, Justin
$25 USD in 1 day
5.0 (1 review)
0.8
0.8
User Avatar
Hy i m haroon from pakistan, i can do this . If u r willing then i will solve your issue
$25 USD in 1 day
4.6 (2 reviews)
0.9
0.9
User Avatar
Hi, I'm very interested in getting this job. I can give you the results you are expecting in 10 minutes. I only need information about some missing variables in your code (nDataLen, readFile and previous). Thank You!
$20 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Will resolve the error and also tell you how you can optimise this piece of code.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i am good with c++, and have great knowledge and experience. i think i can debug your code on time. looking forward to work on this.
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
actually i've never done work online for someone before .. but i'm a good c++ programmer that could help you .. and i'm ready to do your work for less price
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of LEBANON
Beirut, Lebanon
5.0
45
Payment method verified
Member since Apr 25, 2016

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.