Codice PHP:
struct _giocatore
{
char *cognome;
char *nome;
int valore;
}
Codice PHP:
array_giocatori[i].nome = calloc(17,sizeof(char));
array_giocatori[i].cognome= calloc(17,sizeof(char));
for(int j=0;j<16;j++)
{
array_giocatori[i].nome[j] = 65+rand()%26;
array_giocatori[i].cognome[j] = 65+rand()%26;
}