Answer to Question #18364 in C++ for Scott Rohrbeck
So, in my C++ class we're looking at file input and output at the time. My assignment for this part is this:
"Write a C++ program that asks the user to enter ten first names and ages, and then writes the information to a file called name.txt. An array has to be used to store and output the information."
I was suggested to try using a for loop on that, and I do have a little idea of how to do arrays, but this is really baffling me.
The assignment is due this Tuesday, before the end of class, so if you could help me, I would really appreciate it. Thanks!