double indexLowTemp()
{ind=1;
for (a=0;a<col;a++)
 {if (low<=temp[a][0])
	{low=temp[a][0];
	 ind=a;
	}
 }

Recommended Answers

All 2 Replies

what is the problem with that piece of code??

Perhaps ...

double indexLowTemp()
{ind=1;
for (a=0;a<col;a++)
 {if (low<=temp[a][0])
	{low=temp[a][0];
	 ind=a;
	}
 }

// output low temp ...
cout << low;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.