Search Results

Showing results 1 to 3 of 3
Search took 0.03 seconds.
Search: Posts Made By: venomlash
Forum: C++ Jan 7th, 2008
Replies: 3
Solved: max and min
Views: 2,757
Posted By venomlash
Writing an array-sorting algorithm has been the bane of intro-C++ courses since the language was invented, I think. Being a hobbyist, I try to avoid having to sort. If you just need the max and min,...
Forum: C++ Jan 7th, 2008
Replies: 3
Solved: max and min
Views: 2,757
Posted By venomlash
What I would do is this instead of the "read" loop:

int tmax, tmin;

tmax=temp[0];
tmin=temp[0];

for(int i=0; i<31; i++){
if(temp[i]>tmax){
tmax=temp[i];
Forum: Java Jul 24th, 2007
Replies: 6
Views: 19,389
Posted By venomlash
Wow. I'd been wondering about that too...
Thank you abar_sow for asking the question and Ezzaral for answering it.:icon_smile:
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC