Hi there,
I'm using a large structure, and I want to sort it by one of its members, a double variable.
This is the code I would like to implement:
//RMSD Sort, this one works OK....
Type: Posts; User: ERJuanca
Hi there,
I'm using a large structure, and I want to sort it by one of its members, a double variable.
This is the code I would like to implement:
//RMSD Sort, this one works OK....
Hi there,
I'm using a large structure, and I want to sort it by one of its members, a double variable.
This is the code I would like to implement:
//RMSD Sort, this one works OK....
I'm using Ubuntu 9.10. And yes, the code is exactly the same.
But I made the declaration global, and it worked great!
Next time I'll consider to dynamically alocate a big structure.
thanks a lot, ...
Hi there,
I need to use a big structure (fixed size), with multiple file operations.
I could isolate the problem, contained inside the code below.
#include <stdio.h>
#include <stdlib.h>...
I realized the errors a couple of hours after I posted.
thanks for the answers
Hi there, I'm trying to sort an structure with qsort. I'm reading the structure from a binary file.
It's a structure of ~ 60000 members, there are a couple of calculations in between which assign...
This works great!
Thanks Quzah, was really helpful
Sorry for the confusion (english is not my mother language)
The three numbers I got as output is a complete row, then I got the same row repeated four times, like this,
1.222 -0.680 -1.549...
I want to copy selected elements from array stdC to total,
but instead I only get the same three numbers every time, can you help me?
thanks
#include <stdio.h>
int main()
{
Well, I arrived to this:
#include <stdio.h>
float SV(float dog[12][3])
{
int i,j;
for(i=0;i<12;i++)
Thank you for the quick reply, I will try some changes.
Would you suggest me to use a global variable to assign the resulting array from function?
Hi there! this is my first post, I'm relatively new to C, so I hope to be clear,
so here we go:
I've made a function that works properly, but I fail to pass the resulting array from my function...