Questions tagged [generate.c]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

link generate.c and helper.c

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 ...
user avatar
  • 30
0 votes
1 answer
233 views

How do I make comments in generate.c program in PSET3?

In the "understanding" section of find/PSET3 in CS50 2017 how do I open the file generate.c so that I can make (TODO) comments in that. I have ran all the commands for "downloading" section which ...
user avatar
  • 302
0 votes
1 answer
38 views

How does exactly generate.c deliver its output to find.c?

" For instance, the command below passes 1,000 pseudorandom numbers to find, which then searches those values for 42." ./generate 1000 | ./find 42 How come generate.c passes pseudo-random numbers to ...
user avatar
  • 7
0 votes
1 answer
55 views

please help me with this binary search

for some reason this binary search code keeps returning true, when providing the haystack from generate.c, even if the "needle" isnt there. when manually inputing the haystack, the code runs perfectly....
user avatar