;

;df
Last edited on
Your showed array has 6 rows and 4 columns, but inside the function your loops have other values

1
2
3
	for ( int row = 0; row < 5; row++)
	{
	for ( int col = 0; col < 3; col++)


Also these statements

1
2
	highest = 0;
	lowest = 0;


shall be removed.
;
Last edited on
Your loops shall be

for ( int row = 0; row < 6; row++)
{
for ( int col = 0; col < 4; col++)
;
Last edited on
Show your updated code.
1
2
3
4
[code]


void display();

Last edited on
The code is valid except that highshift and lowshift shall be set to zero before the loops.
I think that the problem in the other part of your program. Does display() show the original array?
;
Last edited on
It is very bad idea to show initially one code and then another code. I already pointed out that the loops shall be

1
2
	for (  row = 0; row< 6; row++) {
		for (  collumn = 0; collumn < 4; collumn++) {

instead of

1
2
	for (  row =0;row<=6;row++) {
		for (  collumn=0;collumn<=4;collumn++) {

Topic archived. No new replies allowed.