I was wondering how #ifndef worked. to me, the following should compile. (i get syntax errors) any hints are greatly appreciated!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
...
Type: Posts; User: Zooker
I was wondering how #ifndef worked. to me, the following should compile. (i get syntax errors) any hints are greatly appreciated!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
...
i saw CLOCKS_PER_SEC in different threads and thought it was 100 by default.
laptop. Geforce 7400go (i dont think this matters for arithmitic equations?)
My system is XP (32 bit i think)
T2400 @...
i get 0.015 or 0.016 with your code ronix. thanks a ton. i guess its bad programming on my part. now to play with it! and i didn't realize stdlib.h had it's own qsort. i'm laughing at myself for...
if i call clock() instead of "1000.0 * clock() / CLOCKS_PER_SEC;"
i get: "Elapsed Milliseconds 15.000000" or "Elapsed Milliseconds 31.000000"
which is the exact same if i call getMilliseconds();...
that's actually my intended purpose but i cant get this simple version to work. i get 0.00000milliseconds also on my code that sorts an array like as follows:
(and yes i know how to do true random...
I have spent entire days trying to figure out why my clock() function is seeming to only return 0,15, or 31(it returns 15 or 31 when i make int i a double. and i have no idea why this would change...
what do you meand dots tabstop?
i totally see what you mean about the doubles foxman. sorry this is incredibly elementary, it's probably why i cant find it anywhere. but anyways i changed the...
I cannot for the life of me figure out how to get stuff out of my array that i pass to my function(listSort()). all i want for example is data[0] in my function that i called. i can figure out the...