May 6, 2013 at 3:10am
_ Indent your code
_ Modularize
_ Duck debug (especially lines 12,13,37,49,55,58)
_ Don't "optimize"
May 6, 2013 at 2:12pm
Can someone give some correction?
May 6, 2013 at 2:16pm
For example instead of
int A[N];
int B[N];
memset(A,0,sizeof(A));
memset(B,0,sizeof(B));
you could write
int A[N] = {};
int B[N] = {};
:)
May 6, 2013 at 2:30pm
I corrected so, but it still have bug
May 6, 2013 at 2:39pm
Sorry but i do not understand what your function does and have no any desire to investigate such a bad code.
Good luck!
Last edited on May 6, 2013 at 2:41pm