matrixx333
That's a relief - I couldn't reproduce the bug with the copy/paste routine I posted. I forgot about poker.c.
Gil
Type: Posts; User: gil_johnson
matrixx333
That's a relief - I couldn't reproduce the bug with the copy/paste routine I posted. I forgot about poker.c.
Gil
matrix,
I'm sorry - I am away from home, where I worked on your program, and my mouse here has died.
I am getting around by keyboard, but I can't figure out how to select the text in your code...
Rats - I see your code doesn't show the parentheses, but I saw them when I copied the code to a text editor.
You might try copying the line from your test program over the line in the main program....
matrix,
Your main program doesn't work because of an extra pair of parentheses around
(end - start)/CLOCKS_etc.
(double)(end - start)/CLOCKS_etc.
works to give a floating point number
...
Matrix,
Try putting your little timewaster loop into your program just before the "end" statement.
You know it takes measurable time, so if your program still reports 0, there is a problem....
stabu,
I think the general term you want is "integer sequence." Wikipedia has an article that gives the names of a few dozen known examples. Try:
Wikipedia:integer sequence
Also:
The On-Line...