Questions tagged [generate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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 ...
-1
votes
1answer
31 views

generate doesn't work - find ps3

please help me find out what's wrong with the generate function because I the same result : Usage: ./generate n [s] even if I enter an argument or even change the code ? Here is the generate code : `#...
1
vote
2answers
103 views

Binary Search Pset 3 help

As my question is titled, I would appreciate help with my binary search, shown below. Currently, the search will always return false. I am almost certain that my sorting algorithm is correct, as it ...
0
votes
1answer
25 views

Haystack not found

Hi can someone help me out the code "./generate 1000 50 | ./find 127" doesn't find the haystack. And I even removed the "./find 127" and went through the generated numbers but still didn't see the ...
0
votes
1answer
55 views

Pset 3 generate

I tried to compile generate.c again in another folder without "#define _XOPEN_SOURCE", but i kept getting error as below. I basically copy pasted the main program. What is "#define _XOPEN_SOURCE". ...
0
votes
1answer
82 views

pset3: “generate” problem translating

So, I just started pset3 and I can't seem to figure out what a specific line of the code does. That's why I'm posting it now and hope any of you guys explain it to me. The code: if (argc == 3) {...
0
votes
1answer
79 views

How to pipe PRNg into find.c debug GUI?

I searched through both GBD shorts, but couldn't figure out how the pseude-random numbers can be accessed from within, or piped into, the graphical debugger!? If it`s simply not possible, please let ...
0
votes
1answer
330 views

c prog - Generate ''ALPHABET'' and ''alphabet'' in arrays, wrong output

I'm trying to generate two independent characters arrays. The first one must contain the alphabet in lowercase and the second one, in uppercase. My code works but in the second case, the output ...