Search:

Type: Posts; User: Zooker

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,098

    #ifndef explanation?

    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>
    ...
  2. Replies
    15
    Views
    19,856

    i saw CLOCKS_PER_SEC in different threads and...

    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 @...
  3. Replies
    15
    Views
    19,856

    i get 0.015 or 0.016 with your code ronix. thanks...

    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...
  4. Replies
    15
    Views
    19,856

    if i call clock() instead of "1000.0 * clock() /...

    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();...
  5. Replies
    15
    Views
    19,856

    that's actually my intended purpose but i cant...

    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...
  6. Replies
    15
    Views
    19,856

    clock() keeps returning 0

    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...
  7. Replies
    5
    Views
    2,311

    what do you meand dots tabstop? i totally see...

    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...
  8. Replies
    5
    Views
    2,311

    Accessing a data element in a function

    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...
Results 1 to 8 of 8