#include
using namespace std;
class Test {
double a, b;
public:
Test(double x, double y) {
a = x;
b = y;
}
void afficher_valeur()
{
cout << a << ' ' << b << '';
}
};
int main()
{
Test ob[2][5] = {
Test(1, 1), Test(2, 2),
Test(3, 3), Test(4, 4),
Test(5, 5), Test(6, 6),
Test(7, 7), Test(8, 8),
Test(9, 9), Test(10, 10)
};
Test *p;
p = (Test *) ob;
int i, j;
for(i = 0; i <2; i++)
for(j=0; j<5; j++) {
p->afficher_valeur();
p++;
}
cout << '';
return 0;
}