Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/10/2009, 06:28
Avatar de jamesjara
jamesjara
 
Fecha de Ingreso: mayo-2008
Ubicación: san jose
Mensajes: 449
Antigüedad: 16 años
Puntos: 7
array problema

hola tengo un problema con unarray solo esta recogiendo el primer caracter

Código PHP:
//Vector temporal
#define WIDTH 5
#define HEIGHT 3
chartabla [HEIGHT][WIDTH];
int row,col;
tabla[0][0] = '1';
tabla[0][1] = '2';  
tabla[0][2] = '3';  
tabla[0][3] = '4';  
tabla[0][4] = '5'
tabla[1][0] = '6';
tabla[1][1] = '7';  
tabla[1][2] = '8';  
tabla[1][3] = '9';  
tabla[1][4] = '10'
tabla[2][0] = '11';
tabla[2][1] = '12';  
tabla[2][2] = '13';  
tabla[2][3] = '14';  
tabla[2][4] = '15'


table->setRowCount(HEIGHT);
table->setColumnCount(WIDTH);
for (
row=0;row<HEIGHT;row++)
for (
col=0;col<WIDTH;col++)
{
QString text personas_tabla[row][col];
//solo recoge el primer caracter
table->setItem(row col, new QTableWidgetItem(text));  
 } 
__________________
X7CLOUD El webservice latino!
Compatible
con mysql,sql,sqlitte.
Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming.