Answer to Question #18364 in C++ for Scott Rohrbeck

Question #18364
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!
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS