Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main() {
- int x,y;
- tpMatriz* matriz = NULL;
- char a = 'a', b = 'b', c = 'c', d = 'd';
- char* conteudo[4] = {&a, &b, &c, &d};
- char valor;
- MAT_CriarMatriz(&matriz, 4);
- for(y = 0; y < 4; y++) {
- for(x = 0; x < 4; x++) {
- MAT_InsereNo(x, y, matriz, conteudo);
- }
- }
- for(x = 0; x < 16; x++) {
- printf("x: %d, y: %d\n", matriz->NosMatriz[x]->coordenadaX, matriz->NosMatriz[x]->coordenadaY);
- }
- MAT_ObterValorCorr(matriz, &valor);
- printf("%c %d \n", valor, valor);
- MAT_DestruirMatriz(matriz);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement