i have a function called showArray(int ar[], int numElements, and int numPerLine)
i am having some issues with creating the function properly so that the caller can call it. so far i have this:
/*************** ***************
Function Name: void showArray(int ar[], int numElements, int numPerLine)
*************** ***************/
void showArray(int ar[], int numElements, int numPerLine)
{
int i;`
while(numElemen ts < 200)
{
i = ar[0];
cout << i;
i++;
}
if(numPerLine *= 2)
cout << endl;
an array will be passed through which has 200 elements. in main i have a symbolic const for the number of elements but dont know what passes through the other two arguments. any suggestions?!?! i know the function is coded incorrectly also! Thanks
i am having some issues with creating the function properly so that the caller can call it. so far i have this:
/*************** ***************
Function Name: void showArray(int ar[], int numElements, int numPerLine)
*************** ***************/
void showArray(int ar[], int numElements, int numPerLine)
{
int i;`
while(numElemen ts < 200)
{
i = ar[0];
cout << i;
i++;
}
if(numPerLine *= 2)
cout << endl;
an array will be passed through which has 200 elements. in main i have a symbolic const for the number of elements but dont know what passes through the other two arguments. any suggestions?!?! i know the function is coded incorrectly also! Thanks
Comment