#include <iostream>
using std::cout;
using std::endl;
class Test {
double a, b;
public:
Test(double _a, double _b) {
a = _a;
b = _b;
}
void print() {
cout << a << " : " << b << endl;
}
};
int main()
{
Test o[2][3] = {
Test(1, 1), Test(2, 2),
Test(3, 3), Test(4, 4),
Test(5, 5), Test(6, 6)
};
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 3; j++)
o[i][j].print();
cout << endl;
}
return 0;
}
/*
run:
1 : 1
2 : 2
3 : 3
4 : 4
5 : 5
6 : 6
*/