Re: [Dev-C++] How i convert a char matrix to int matrix ?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <hu...@cl...> - 2003-12-17 09:47:13
|
How i call tgis function ??
<br>
<br>But this statement don't work : show_matrix((int)marix);
<br>
<br>>
<br>> --- Mensagem Original ---
<br>> De: <hu...@cl...>
<br>> Para: <dev...@li...>
<br>> Data e Hora: 17/12/2003 07:36
<br>> Assunto: [Dev-C++] How i convert a char matrix to int matrix ?
<br>
<br>> Hei all,
<br>> <br>i have this matrix :
<br>> <br>
<br>> <br>char matrix[5][5] =
<br>> <br>{{'0','0','0','0','0'},
<br>> <br>{'0','0','0','0','0'},
<br>> <br>{'0','0','0','0','0'},
<br>> <br>{'0','0','0','0','0'},
<br>> <br>{'0','0','0','0','0'}
<br>> <br>};
<br>> <br>
<br>> <br>and i have this function :
<br>> <br>
<br>> <br>void show_matrix(int m[5][5))
<br>> <br>{
<br>> <br> int i,j;
<br>> <br>
<br>> <br> for(i=0;i<5;i++)
<br>> <br> {
<br>> <br> for(j=0;j<5;j++)
<br>> <br> {
<br>> <br> printf("%c ",m[i][j]);
<br>> <br> }
<br>> <br> printf("\n");
<br>> <br> }
<br>> <br>}
<br>> <br>
<br>> <br>this function receives a int matrix and i have a char matix,
<br>> <br>how i call this function with a char matrix ??
<br>> <br>
<br>> <br>
<br>> <br>Thanks<p>Clix Rapidix - Aumente até 6X a velocidade da sua Internet
<br>>
<br>> Adira em http://acesso.clix.pt e comece logo a navegar<br>
<br>>
<br>>
<br>> -------------------------------------------------------
<br>> This SF.net email is sponsored by: IBM Linux Tutorials.
<br>> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
<br>> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
<br>> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
<br>> _______________________________________________
<br>> Dev-cpp-users mailing list
<br>> Dev...@li...
<br>> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
<br>> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<br><p>Clix Rapidix - Aumente até 6X a velocidade da sua Internet
Adira em http://acesso.clix.pt e comece logo a navegar<br>
|