Parallel Array
Submitted by jakerpomperada on Thursday, December 3, 2009 - 13:37.
      
  Language
              
          Hi there about this code I called it Parallel Array in C++. Parallel arrays are several arrays with the same number of elements that work in tandem to organize data.
For Example
dogname
Wally	Skeeter	Corky	Jessie	Sadie
round1
18	22	12	17	15
round2
20	25	16	18	17
**The true beauty of parallel arrays, is that each array 
may be of a different data type.
In the data represented above, the first array is the dog's name, the second array is the dog's score in round 1 of the competition, and the third array is the dog's score in round 2 of the competition.  The arrays are parallel, in that the dog in the first element of the first array has the scores represented in the first elements of the second and third arrays.
Sample Code:
//Printing the dog competition information:
for(int index = 0; index  dogname.length( ); index++)
{
     cout
      
            Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.
FOR YOUR OWN SAFETY, PLEASE:
1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
 
              