Search:

Type: Posts; User: badtwistofate

Search: Search took 0.03 seconds.

  1. Works for both cases now. Thanks. :) I...

    Works for both cases now.

    Thanks. :)

    I think I will come away more knowledgeable from these posts!
  2. THINK I FIXED IT!! /* first bin */ ...

    THINK I FIXED IT!!



    /* first bin */

    for (i = (a - 1); i >= 0; i--)
    {
    for (j = 1; j <= i; j++)
    {
  3. I know you comparison function is correct it just...

    I know you comparison function is correct it just isn't working with the code... I'm really laughing at this point as I don't see a conceivable reason why it isn't work. The two bin sort code tidbits...
  4. why I sort with z and then sort with t is I first...

    why I sort with z and then sort with t is I first want to establish two bins. 1st bin is for z values 0 - 100 and second is 100 and greater. So I sort the whole thing for z and count the amount that...
  5. Yes i tried it. It didn't work right: Data...

    Yes i tried it. It didn't work right:


    Data SortedThe amount in each z bin:
    7, 3
    time, z, y, x
    1.000000, 1.000000, 2.000000, 15.000000
    5.000000, 1.000000, 2.000000, 5.000000
    6.000000,...
  6. Hmm.. I guess not :0 Fixed the first bin sorting...

    Hmm.. I guess not :0
    Fixed the first bin sorting problem when the red term is set to zero ala the first sort done in the program.....

    Seems the second bin sorting is not as forgiving. I have it...
  7. Noob question - I just was always under the...

    Noob question - I just was always under the assumption to not use a variable (like i) after using it earlier in the program. Upon looking at it since I am setting it to something with = it should be...
  8. How does this comparison function help the...

    How does this comparison function help the sorting process?

    Should it work such that if, comparing the first bin, 1st time is larger and the second time is bigger it gives a value of 1 and then...
  9. Sorting problem with structures and arrays, could I get some guidance?

    Task: Sorting a array data set that I made a structure for.
    Arrays are in x, y, z, time....

    First I count the number of records of z that fall into two bins ( 0 < z < 100 and z > 100)

    I then...
  10. Replies
    4
    Views
    1,571

    Thank you. Are you saying that I am on the...

    Thank you.

    Are you saying that I am on the right track with a pointer to a pointer?
  11. Replies
    4
    Views
    1,571

    Call by reference question

    I have a question regarding call by reference - essentially using a function i made and calling it in the main function. I'm passing 2 variables (pointers) into it and the value is copied in the...
  12. Replies
    2
    Views
    1,249

    Best place to start (I/O question)...

    I am inputting a file and outputting this file in new modified format. This i can do but was wondering if its possible to output the file and have the file name be identical to the input file name...
Results 1 to 12 of 12