A
AHR
Hi NG
I have a class which contains:
**********************
class felt
{
private:
int id;
int koorx;
int koory;
public:
felt(int id_x, int koorx_x, int koory_x)
{
id=id_x;
koorx=koorx_x;
koory=koory_x;
}
};
**********************
Then I have my main which should contain an array of felt-objects:
**********************
int main()
{
//Example
felt nr1(1,1,1);
??? arr[4];
arr[0]=???;
arr[1]=???;
arr[2]=???;
arr[3]=???;
return 0;
}
**********************
But how do i declare an object array? Please help me to insert the right
values on the questionmarks.
Thanks
AHR
I have a class which contains:
**********************
class felt
{
private:
int id;
int koorx;
int koory;
public:
felt(int id_x, int koorx_x, int koory_x)
{
id=id_x;
koorx=koorx_x;
koory=koory_x;
}
};
**********************
Then I have my main which should contain an array of felt-objects:
**********************
int main()
{
//Example
felt nr1(1,1,1);
??? arr[4];
arr[0]=???;
arr[1]=???;
arr[2]=???;
arr[3]=???;
return 0;
}
**********************
But how do i declare an object array? Please help me to insert the right
values on the questionmarks.
Thanks
AHR