Raised This Month: $ Target: $400
 0% 

[ Solved ] very fast question ...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-27-2012 , 12:15   Re: [REQ] very fast question ...
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
The 2nd one doesn't even compile...
I compile it :/ it is unnecessary, but it compiles.

It is not the same, it can work but it is unnecessary if you use just one string.

PHP Code:
new const szColors][ 16 ] = {
    
"White",
    
"Green",
    
"Black"
};

new const 
szColor116 ] = { "White" };
new const 
szColor216 ] = { "Green" };
new const 
szColor316 ] = { "Black" }; 
Both can work fine, but the first way it is better because you for example could do a loop for use it. And you create just one cost instead of three, in the other way.
__________________

Last edited by Neeeeeeeeeel.-; 06-27-2012 at 12:21.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



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 06:19.


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