I have a file that I can already read in
If the file says:
I use this code:
fscanf(file,"%s %lf", struct_ptr.name, &struct_ptr.number);
struct_ptr.name = "Jamie" and then struct_ptr.number = 20
so... what if I had:
Jamie Lynn 20
I dont know how to make struct_ptr.name equal the whole string "Jamie Lynn"
In the file I have like:
Jamie lynn 20
Eric D. Mcdaniel 40
so I need to read in the name for the name part of the struct, then the number for the number part of the struct.