|
改めて書き直します。
typedef struct _sequence { int len; char *name; char *array; int score; } sequence;
typedef struct _sequence_set { int num; sequence *seq; } sequence_set;
void set_seq_array( char *array, int len, sequence *seq ) { size_t size;
seq->len = len; size = sizeof(char) * (len+1); seq->array = (char*) malloc_e( size, "seq->array" ); memcpy( seq->array, array, len ); seq->array[len] = 0; }
void load_sequence_set( char *file, sequence_set *set ) { set_seq_array( temp_array, len, &(set->seq[id]) ); }
float calc(seqence_set *query_set) { for (i = 0; i < 5; i++) { integral_params[i].query = query_set.seq[i]; /*エラーはここだと表示されます。*/ }
int main( int argc, char **argv ) { char *file_query; sequence_set query_set; file_query = argv[2];
load_sequence_set( file_query, &query_set ); calc(&query_set); }
|