The prawn help changes the program error, thanked!
#include<stdio.h>
#define Row 3
#define Col 4
int i, j;
void Output (int x, int y, int ** R)
{
for (i=0; i<x; i++)
{
for (j=0; j<y; j++)
printf (“%d”, R[i][j]);
printf (“\ n”);
}
}
void main()
{
int RA[Row][Col] = {‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘7’, ‘8’, ‘9’, ‘0’, ‘1’, ‘2’}, RB[Col][Row];
Output(Row, Col, RA);
for (i=0; i<Row; i++)
for (j=0; j<Col; j++)
RB[i][j]=RA[j][i];
Output(Col, Row, RB);
}
Studies to here, is perhaps useful Reference:http://www.sskee.com/info
Leave a Reply
You must be logged in to post a comment.