i always hear about arrays and it makes sence to me but whats a tipical use for them may i pleas see an example because i dont understand why they eaven exisit
grunge man 0 Junior Poster
Recommended Answers
Jump to PostAre you in school? (let's assume you are for the moment) Do you have classmates? How many? And how many in the whole school? (let's use 1000)
Would you want to define a single variable for everyone's name, then another for address, city, current class, grades so far..... That's …
Jump to Post>ya but wouldnt u have to enter every piece of data individually
No. You could use loops to fill in data, which would require very little code. Let me show you an example:for (int i=0 ; i < ARRAY_LENGTH ; ++i) { cout << "Type in …
All 6 Replies
Aia 1,977 Nearly a Posting Maven
grunge man 0 Junior Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
tayster 0 Newbie Poster
tayster 0 Newbie Poster
John A 1,896 Vampirical Lurker Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.