error C2143: syntax error : missing ';' before 'type'
May 2, 2015 at 2:43am UTC
Hi,
I am new to programming C.. please tell me what is wrong with this program, and why I am getting this error: error C2143: syntax error : missing ';' before 'type'....
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
static void print_one_shape(struct shape *one_shape, FILE *fp_bug)
{
Message0("%d %12.5e\n" , one_shape->number_of_data, one_shape->next_time);
#ifdef DEBUG
fprintf(fp_bug, "%d\n" , one_shape->number_of_data);
int i;
for (i=0; i<one_shape->number_of_data; i++)
{
fprintf(fp_bug, "%14.6e %14.6e " , one_shape->data_t_plus_dt[i][0], one_shape->data_t_plus_dt[i][1]);
fprintf(fp_bug, "\n" );
}
#endif
}
Please help me in this regard.
Last edited on May 2, 2015 at 2:43am UTC
May 2, 2015 at 4:14am UTC
What line is the error on?
Topic archived. No new replies allowed.