Computing.Net > Forums > Programming > lists. arrays going into

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

lists. arrays going into

Reply to Message Icon

Name: moltar
Date: October 2, 2003 at 11:02:40 Pacific
OS: xp prof
CPU/Ram: 256
Comment:

I need to make a list hold three different arrays, and multiple of that type
It's being brought in from a file
and after it brings in a line, it stores the line in the first array, then second, then third, then should take to list, and loop back until eof.

i'm not too good with arrays b/c i can't ever get a simple example of them

how is the certain element of an array found? because i haven't seem them with the [element] bracket =/



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: October 2, 2003 at 11:50:44 Pacific
Reply:

Which language are you talking about?
-SN


0

Response Number 2
Name: Infinite Recursion
Date: October 2, 2003 at 12:49:52 Pacific
Reply:

Lets assume C++ :)

int myArray[50];
/* Elements are indexed from 0 to 49 */

Arrays start normally with an index of 0.
So to extract the information from each element of the array, loop through it with an index...

for (index = 0; index < 50; index++)
{
cout << myArray[index] << endl;
}


IR


0

Response Number 3
Name: moltar
Date: October 2, 2003 at 14:43:29 Pacific
Reply:

c++
well arrays are being stored into a list.

but how do you access the different parts of a list?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Malloc function error Exploring Java Projects



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: lists. arrays going into

VBscript, search arrays www.computing.net/answers/programming/vbscript-search-arrays/14399.html

Insert item in array (C#) www.computing.net/answers/programming/insert-item-in-array-c/13076.html

Array/Dictionary/Something else www.computing.net/answers/programming/arraydictionarysomething-else/15451.html