DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   what will i do to output low temp (http://www.daniweb.com/forums/thread129424.html)

sniper29 Jun 14th, 2008 11:23 pm
what will i do to output low temp
 
double indexLowTemp()
{ind=1;
for (a=0;a<col;a++)
 {if (low<=temp[a][0])
        {low=temp[a][0];
        ind=a;
        }
 }

joshmo Jun 15th, 2008 1:36 am
Re: what will i do to output low temp
 
what is the problem with that piece of code??

mitrmkar Jun 15th, 2008 9:16 am
Re: what will i do to output low temp
 
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;


All times are GMT -4. The time now is 3:44 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC