>Preciso trabalhar com uma matriz e não sei como.
>Por exemplo:
>
>
>int n=3;
>int matriz;
>
>for (a=0; a<n; a++)
> for (b=0; b<n; b++)
> matriz[a][b] = 0;
>
>
>Agora ele da erro matriz[a][b] pois não sei como eu faço pra expecificar coluna e linha de uma matriz em C.
>
>Valeu!!
Acho que precissa declarar a matriz com as dimensões corretas. Troque a instrução:
int matriz;
por a seguinte:
int matriz[3][3];
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)