Quote:
class Trajectory; <-------this is a trajectory forwrd declaration in the Ball.h file but it doesnt fix the Trajectory move line
class Ball public shape {
Trajectory movements; //creates a default trajectory object to be gotten at a later time
}
where I do Trajectory movements in the class header I get an error and I have done a forward declaration but it still doesnt work , thats what I was getting at in the end. How could I fix this? If its a forward declaration why is it not working ? and which other class is it needed in if not the above?
Yes I have done as enigma has suggested and solved the circle problem but I know have a problem with Trajectory moved; line even though I forward declared it
thanks