Have two problems, first of all I want to print the values from an array of type struct Res,
I've tried the following but can't seem to get it right
I want to print both score and doc_id, but can't get either at the moment, my syntax is probably totally wrong.
When I print out these results I also want to be able to accept or reject each entry ie. let the user type in "Y" or "N" after each entry. I presume I would just have to loop through the results in some manner but am not too sure. Any help please!
Code:
struct res {
int doc_id;
float score;
};
typedef struct res Res;
Res results[NUM_SITES][100];//Array I want to print from
Code:
printf((results[i][j].score)"\n", results);
When I print out these results I also want to be able to accept or reject each entry ie. let the user type in "Y" or "N" after each entry. I presume I would just have to loop through the results in some manner but am not too sure. Any help please!