hi guess!
i have little problem that
when we take the values of x and y massiv how to pass the massiv
to the class ? to dmap.h
please help me to solute that!
Dmap dmap;
int SCAN_NUMBER, obj_num;
int i;
cin>>SCAN_NUMBER;
cin>>obj_num;
int *x;
int *y;
for ( i=0; i<obj_num; i++)
{ for(i =0; i < SCAN_NUMBER; i++)
{ cout<<"x = "; cin>>x[i];
cout<<"y = "; cin>>y[i];
}
dmap.set_coord(*x, *y); // ???????
int too = 0;
too++;
cout<<"x and y coordinates of "<<too<<"th object are : ";
cout<<endl;
dmap.print_coord();
}