please help me understand what I'm missing... why I don't have any random numbers when I enter : ./generate 10 | ./find 10
(well that the same result I have when I entered ./generate 1000 50 | ./find 127) here the results: `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.And when I enter this:
$ ./find 42
50
43
^d
Didn't find needle in haystack.I have to enter myself number and finish by clt ^d ?
haystack[0] = 50
haystack[1] = 42
haystack[2] =
Didn't find needle in haystack.` Why we have clt^d in the answer ? What's the meaning to print that data? Please tell me if you need to see my code, generate or search/sort. Thank you