#include <vector>
#include <iostream>

using namespace std;
typedef double Slot;
typedef vector<Slot> Row;
typedef vector<Row> Table;
typedef Row::size_type RSize;
typedef Table::size_type TSize;

void foo(Row *tb, TSize m, RSize n)
{
    for (TSize i = 0; i < m; i++)
    {
        for(RSize j = 0; j < n; j++)
        {
            cout << tb[i][j] << " ";
        }
        cout << endl;
    }
}

int main()
{
    Table tb;
    for (int i = 0; i < 10; i++)
    {
        tb.push_back(Row(5, i));
    }
    foo(&tb[0], tb.size(), tb[0].size());
    return 0;
}

