Raised This Month: $ Target: $400
 0% 

Saving in arrays


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-22-2010 , 13:51   Re: Saving in arrays
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
But if you string is already declared somewhere, you can't copy text directly, you need to use copy().
You can, as long as the other string has the same number of elements.
PHP Code:
new g_szString1[] = "txt1"// 5 elements
new g_szString2[5]; // Or sizeof(g_szString1)
 
g_szString2 g_szString1;
g_szString1 "txt2"
__________________

Last edited by hleV; 10-22-2010 at 13:54.
hleV 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 10:23.


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