Raised This Month: $ Target: $400
 0% 

Some things I wonder about.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 08-22-2012 , 04:34   Re: Some things I wonder about.
Reply With Quote #5

Each cell may store a value.

PHP Code:
new c] = { 'a''b''c' }; // three
new a] = { 'a''x' }; // two
new d] = { 123}; // four

/*
  So, d[ 0 ] = 1, d[ 1 ] = 2, d[ 2 ] = 3, d[ 3 ] = 4.

  c = "abc";
  c[ 0 ] = 'a', c[ 1 ] = 'b', c[ 2 ] = 'c';
*/ 
You have to define 32 cells for all players. From 0 to 31 inclusive.
If you want to use the cells from 1 to 32 inclusive, you have to define 33 cells.

Last edited by claudiuhks; 08-22-2012 at 04:34.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 05:42.


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