an array of structs

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

  1. johnny112

    johnny112

    Joined:
    May 21, 2009
    Messages:
    1
    Likes Received:
    0
    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
    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.