Combining Structures and File Input/Output Okay, now what we are going to do is combine what you've learned in the last two chapters. In this assignment you are to create a structure that contains five members. You will then declare two variables of that stucture's type. Example: struct person { char user_name[25]; char address[25]; char zip[8]; int age; int years_in_college; }; person bob; person bill; Next, write a program that combines your structure with appending data to a file. For example, using the structure above, I would make my program ask the user for all the data concerning Bob, and then do the same for Bill. I would have all that information appended to my data file so that I could then open the data file and see all the data. Run the program several times to make sure it keeps appending the data. |