Works for both cases now.
Thanks. :)
I think I will come away more knowledgeable from these posts!
Type: Posts; User: badtwistofate
Works for both cases now.
Thanks. :)
I think I will come away more knowledgeable from these posts!
THINK I FIXED IT!!
/* first bin */
for (i = (a - 1); i >= 0; i--)
{
for (j = 1; j <= i; j++)
{
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...
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...
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,...
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...
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...
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...
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...
Thank you.
Are you saying that I am on the right track with a pointer to a pointer?
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...
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...