Search:

Type: Posts; User: ERJuanca

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    864

    Sort structure problem

    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....
  2. Replies
    1
    Views
    994

    Sort structure problem

    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....
  3. I'm using Ubuntu 9.10. And yes, the code is...

    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, ...
  4. Big structure + file pointer = segmentation fault

    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>...
  5. Replies
    3
    Views
    1,416

    I realized the errors a couple of hours after I...

    I realized the errors a couple of hours after I posted.
    thanks for the answers
  6. Replies
    3
    Views
    1,416

    qsort+structures: Cant figure what's wrong

    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...
  7. Replies
    4
    Views
    1,139

    This works great! Thanks Quzah, was really...

    This works great!
    Thanks Quzah, was really helpful
  8. Replies
    4
    Views
    1,139

    Sorry for the confusion (english is not my mother...

    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...
  9. Replies
    4
    Views
    1,139

    multiple for cycles

    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()
    {
  10. Well, I arrived to this: #include...

    Well, I arrived to this:



    #include <stdio.h>

    float SV(float dog[12][3])
    {
    int i,j;
    for(i=0;i<12;i++)
  11. Thank you for the quick reply, I will try some...

    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?
  12. Problems passing values from function to main variables

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