little problem with class?

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!


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    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();     
    }
Last edited on
When the types of the parameters are included, it is attempting to declare the function, not call it.
Topic archived. No new replies allowed.