Search:

Type: Posts; User: rocket_c

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    618

    sorting arrays of pointers

    typedef struct {
    name_t name;
    float beta[beta_num];
    }gene_t;


    gene_t **gene

    /*assigning data to gene*/
  2. Replies
    9
    Views
    816

    ic. I'll think about it. Thank you very much

    ic. I'll think about it. Thank you very much
  3. Replies
    9
    Views
    816

    And the array is dynamic

    And the array is dynamic
  4. Replies
    9
    Views
    816

    I want an array of genes.

    I want an array of genes.
  5. Replies
    9
    Views
    816

    /*Create an array of genes of the large matrix*/...

    /*Create an array of genes of the large matrix*/
    gene_t *gene,gene1,gene2;

    gene=malloc(INITIAL*sizeof(gene2));


    But there is error: incompatible types in assignment

    and
  6. Replies
    9
    Views
    816

    so it should be ...

    so it should be


    &gene=malloc(INITIAL*sizeof(gene2)); ?
  7. Replies
    9
    Views
    816

    dynamic arrays and pointers

    I am having troubles with dynamic arrays and pointers. All the errors are of that kind. I think when I am assigning malloc to an array we assign to its address. What are the problems of the...
  8. I think there is something wrong with my concept...

    I think there is something wrong with my concept of malloc. Maybe I modify the program. Thanks
  9. Here is my code of allocation gene_t...

    Here is my code of allocation




    gene_t gene1;
    while(fscanf(fp,"%s %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f...
  10. error: lvalue required as left operand of assignment

    typedef struct { name_t name;
    float beta[beta_num];
    }gene_t;

    gene_t gene[300]

    /*assigning data to gene*/
    /*some of them are allocated dynamically*/

    for (i=0;i<count;i++) {
  11. Replies
    1
    Views
    1,863

    No such file or directory

    #include <stdio.h>#include <stdlib.h>
    #include <string.h>
    #include <strings.h>


    I just download Xcode and then run on terminal. The editor is using TeXshop. The file is a .c file. It shows the...
Results 1 to 11 of 11