Writing multiple values to an array

This is a discussion on Writing multiple values to an array within the C Programming forums, part of the General Programming Boards category; i am trying to create an array that will hold mutliple pieces of information on multiple items. For example, the ...

  1. #1
    Unregistered
    Guest

    Post Writing multiple values to an array

    i am trying to create an array that will hold mutliple pieces of information on multiple items. For example, the name, age, and address of students in my class.

    How do i go about initializing the array? and how can this data be recalled and sorted?

    I've scoured the tut's + faq's, but couldn't find an answer, can anyone help, or point me to a website or tut? cheers.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Use an array of structures, an array of unions, or an array of void pointers.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing to my 2D Array
    By qwertysingh in forum C Programming
    Replies: 0
    Last Post: 04-12-2009, 01:16 PM
  2. Writing an array of struct to file
    By stellastarr in forum C Programming
    Replies: 10
    Last Post: 03-25-2006, 05:59 PM
  3. question about multidimensional arrays
    By richdb in forum C Programming
    Replies: 22
    Last Post: 02-26-2006, 08:51 AM
  4. assigning values in file to an array
    By divinyl in forum C++ Programming
    Replies: 9
    Last Post: 07-29-2003, 08:33 AM
  5. Array elements values not being assigned
    By Sardien in forum C Programming
    Replies: 4
    Last Post: 02-11-2002, 12:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21