P
Pedro Pinto
Hi there! I'm having a problem in my program.
i've created this structure:
typedef struct tabela tabela;
struct tabela {
char nome[50];
int nColunas;
int nLinhas;
char nomeColunas[10][50];
char valores[50][65];
tabela *next;
};
my problem is the following:
I can sucessfully alter the values of nome[50], nColunas and nLinhas,
but i can't seem to be able to insert a string into nomeColunas or
valores.
This is to simulate an SQL table, nomeColunas[10][50] indicates that
you can have 10 diferent collum names with a 50 bytes name length.
Valores[50][65] indicates that you can have 50 lines of values with a
50 bytes name length.
My question is, how can i create a function that permits me to alter
the value on these two bidimensional arrays?
Thanks in advance for any help.
i've created this structure:
typedef struct tabela tabela;
struct tabela {
char nome[50];
int nColunas;
int nLinhas;
char nomeColunas[10][50];
char valores[50][65];
tabela *next;
};
my problem is the following:
I can sucessfully alter the values of nome[50], nColunas and nLinhas,
but i can't seem to be able to insert a string into nomeColunas or
valores.
This is to simulate an SQL table, nomeColunas[10][50] indicates that
you can have 10 diferent collum names with a 50 bytes name length.
Valores[50][65] indicates that you can have 50 lines of values with a
50 bytes name length.
My question is, how can i create a function that permits me to alter
the value on these two bidimensional arrays?
Thanks in advance for any help.