05.04.2016, 15:59
Quote:
your reply and his problem is not connected and using 256 as cell size is like wasting and it makes the compiler slow too a god programmer should know the processing compotent well and should make its working ease
And Код:
new name[20 char] |
Quote:
AndySedeyn i've read this topic, its interesting but i still didn't understend, i should use like this?
new name[20 char]; with the chars in the text or? can you explain me better maybe or i'm right? like i got this new name[20 char]; (blabla, "%s joined the server", name); |
PHP код:
new name[43]; // (20 - 2) for the actual size and 24 for the player's name + \0
Quote:
Originally Posted by tutorial
Regular strings store one character per cell and a cell is 4 bytes long (making 256 long strings exactly a kilobyte in size), packed strings store 4 characters per cell
|