June 30, 2010

a015

#include <iostream>

using namespace std;

int
main()
{
    int x, y, i, j;
    int array[100][100];
   
    while(cin >> x >> y)
    {
    for (i = 1; i <= x; i++)
    for (j = 1; j <= y; j++)
    cin >> array[j][i];
   
    for (i = 1; i <= y; i++)
    {
    for (j = 1; j <= x; j++)
    cout << array[i][j] << " ";
   
    cout << endl;
    }
    }

    return 0;
}

0推薦此文章
Today's Visitors: 0 Total Visitors: 40
Personal Category: Uncategorized Articles Topic: life / pets / cats
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0