[b][red]This message was edited by leilani at 2003-2-14 0:28:32[/red][/b][hr]
[b][red]This message was edited by leilani at 2003-2-14 0:18:37[/red][/b][hr]
I am extremely confused about handling strings in C. I need to read records from a file into an array of structures. A sample line from the file is:
Doe, Jane 888-88-8888 6 J 4300.00
(the name is of a fixed width of 30)
I am not able read the lines of data into the array of structures.
to read a single record:
char lname, fname;
strcpy( Stu.Name, lname);
I also need to do some calculations with the tuition values. Is it better to read the income as a string then convert it with the atof function?