Find Jobs
Hire Freelancers

Debug short c++ code

$10-30 USD

Cerrado
Publicado hace alrededor de 7 años

$10-30 USD

Pagado a la entrega
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]; } }
ID del proyecto: 13810081

Información sobre el proyecto

17 propuestas
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
17 freelancers están ofertando un promedio de $26 USD por este trabajo
Avatar del usuario
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 en 1 día
4,9 (714 comentarios)
8,9
8,9
Avatar del usuario
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 en 0 día
4,9 (144 comentarios)
7,0
7,0
Avatar del usuario
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 en 1 día
5,0 (5 comentarios)
3,5
3,5
Avatar del usuario
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 en 1 día
5,0 (1 comentario)
0,8
0,8
Avatar del usuario
Hy i m haroon from pakistan, i can do this . If u r willing then i will solve your issue
$25 USD en 1 día
4,6 (2 comentarios)
0,9
0,9
Avatar del usuario
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 en 0 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Will resolve the error and also tell you how you can optimise this piece of code.
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
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 en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de LEBANON
Beirut, Lebanon
5,0
45
Forma de pago verificada
Miembro desde abr 25, 2016

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.