Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,493 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,703 people online right now. Registration is fast and FREE... Join Now!




Text file into array of structure

 
Reply to this topicStart new topic

Text file into array of structure, simple question i think..

goblue89x
5 Mar, 2008 - 04:11 PM
Post #1

New D.I.C Head
*

Joined: 5 Mar, 2008
Posts: 8


My Contributions
so im writing a program that reads a text file like this

April,Joe
21
312033387
126 Freelane, Yourtown, State 88990

but quite a few of those with different information in each piece. i got it to read the file and create a back up. but im having trouble making it into array of structure and displaying it.. and each structure must contain each persons' information:

Last_Name, First_Name
Age
ID
Address

i dont want to edit the orginal file, i just want to make the file contents into a array..

help!!
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 07:51PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month