Raised This Month: $ Target: $400
 0% 

Variables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 05-09-2012 , 14:01   Re: Variables
Reply With Quote #5

Code:
new array[4]
 
new current_value, max_value
for(current_value=0;current_value<4;current_value++) if(array[current_value] > array[max_value]) max_value = current_value
or
Code:
max( array[ 0 ] , max( array[ 1 ] , max( array[ 2 ] , array[ 3 ] ) ) );
__________________
DarkGL is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode