an array of structs

Discussion in 'C Programming' started by johnny112, May 21, 2009.

  1. johnny112


    May 21, 2009
    Likes Received:
    I am trying to create an array of structs. I am extracting the info from a file and putting them into the struct using the getline function. But I don't know how to put the structs into the arrays. I need to make a loop to put the info in the structs. The struct looks like this:

    Is there something easy that I'm missing that does this?
    johnny112, May 21, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.