Right i think i need to read in data from keyboard input, set up an object with this data as its private attributes using a constructor. Store the pointer to this object within a vector of pointers. Then moving onto the next data and repeat placing the pointer to this object into the next memory slot within the vector.
Now the problem is that, say i read in 1 set, for example:
int x, y
for ( z = 0; z != -1; z++) //starting for loop
{
cout << "x = ?"; //reading in the variables
cin >> x;
cout << "y = ?";
cin y;
so the starting of a for loop, reading in x and y from the keyboard now these variables are set and so i would create the object for example : "object object1(x,y)" thus setting the variables but i need to read in many sets of data and place their pointers inside the vector.
Is there a way to say use the "z" variable to influence the naming of the object say.. object z-object(x,y). for example is z was 1 then the object would be called 1object or something like that. Otherwise i cant see how i can aswell create pointers to the object to put into the vector as i create them.
Now bare in mind this all may seem rubbish to a programming as i am severly lacking in basic programming knowledge but i may get something useful out of it
.
Ty in advance
Firthy15
Now the problem is that, say i read in 1 set, for example:
int x, y
for ( z = 0; z != -1; z++) //starting for loop
{
cout << "x = ?"; //reading in the variables
cin >> x;
cout << "y = ?";
cin y;
so the starting of a for loop, reading in x and y from the keyboard now these variables are set and so i would create the object for example : "object object1(x,y)" thus setting the variables but i need to read in many sets of data and place their pointers inside the vector.
Is there a way to say use the "z" variable to influence the naming of the object say.. object z-object(x,y). for example is z was 1 then the object would be called 1object or something like that. Otherwise i cant see how i can aswell create pointers to the object to put into the vector as i create them.
Now bare in mind this all may seem rubbish to a programming as i am severly lacking in basic programming knowledge but i may get something useful out of it

Ty in advance
Firthy15