Course Solutions Uncategorized (Solved) : C Language Code Review Fscanf Usage Wanna Store Id Name Struct Text File Data Cannot Read Q33299946 . . . .

(Solved) : C Language Code Review Fscanf Usage Wanna Store Id Name Struct Text File Data Cannot Read Q33299946 . . . .

 

C language > code review > fscanf usage

I wanna store id and name in to a struct from a text file, butdata cannot be read correctly on line 30.

for (int i = 0; ǐ < s_num: î++) fscanf( f, %d %s %s, &(s-data í)->st_id, delim, (s_data + i)->st_name); + printf(testln); for (int i -o; î < s_num ; i++) printf(%d, (s-data 1)->st_id); + 4 free(s_data); return 0 NORMAL2. utf-8[unix] 57%-30/52 2 26 1 20151053/Natalie Lewis 0 20161918/Chloe Christian 1 20161317/Emolys Evans 2 20151329/ Sophia Allen 3 20161787/Robert Melton 4 20161161/Siaomos Barton 5 20111559 Sebastian Henderson 6 20161185/Richard Cerney 7 20161754 / Elizabeth Calvin

here’s

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post