i have a list of numbers and i have to print from a specified row and column to a specified row and column.
easy as pie if i could use a multi-dimensional array. But i cant.so i need to know what goes into the element part of the array.
void text_display (int array[ ], int nr, int nc, int start_row, int start_column,int end_row, int end_column) { int r,c; r=start_row;
while (r<=end_row) {
c=start_column; while(c<=end_column) { cout<<array[what goes in here?]; c++; }
r++;
cout<<endl; }
}
nr and nc is the amount of rows and columns i have to work with. the rest is self explanatory.
Thanks.

New Topic/Question
Reply




MultiQuote




|