Raised This Month: $ Target: $400
 0% 

a stock


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MyPc
Senior Member
Join Date: Sep 2011
Old 11-26-2011 , 13:34   Re: a stock
Reply With Quote #4

Quote:
Originally Posted by jim_yang View Post
Code:
stock reverse(a[])
{
	new l = strlen(a);
	new lm1 = l - 1;
	new hl = l / 2;
	new c;
	for(new i = 0; i < hl; ++i)
	{
		c = a[i];
		a[i] = a[lm1 - i];
		a[lm1 - i] = c;
	}
}
always wanted to know is there a difference between "/" and "%" in this code ? if there is what is the difference ?

Last edited by MyPc; 11-26-2011 at 13:44.
MyPc 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 08:35.


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