View Single Post
Old 07-05-2006, 02:15 PM   #2 (permalink)
Spartan
Spartan's Avatar
 
Ultra Techie

Join Date: Jul 2005

Posts: 814

Spartan

Default

well, on the problem of displaying the contents of a array, you can just run a simple loop add 1 to a count variable, each time showing the contents of the array

Example:

void printarray (int number[], int length) <--calling this from the main program
{

for (int n=0; n<length; n++)
cout << number[n] << " ";
cout << "\n";

}

Sry if the code isn't 100% correct; the fundamentals are right.
__________________
Spartan is offline