please, I'm lost what to do next, after coding search and sort. what do i have to do to change haystack [] ?Do I have to change code in generate ? in find ? both ? is it something I have to add in search and sort ? please help me. When I enter ./find 42 I should have : ./find 42
50
43
^d
Didn't find needle in haystack.
but what I have is `haystack[0] = 50
haystack[1] = 42
haystack[2] =
Didn't find needle in haystack.And when I test my code with ./generate 1000 50 | ./find 127 I just get a 1000 list of haystack without numbers with a negative answer :
haystack[0] = haystack[1] = haystack[2] = haystack[3] = haystack[4] = haystack[5] = haystack[6] = haystack[7] = haystack[8] = haystack[9] = haystack[10] =
Didn't find needle in haystack.