Error c2460 which is being defined
Re: odd instance of error C So how are we to help you if we don't have all of the files necessary to duplicate the problem? Regards, Paul McKenzie. August 22nd, , PM 5. Re: odd instance of error C Originally Posted by JernauGurgeh. August 22nd, , PM 6. Re: odd instance of error C As an aside, start with the very first error message. The compiler will try to continue to parse the source file, after encountering an error, so that the developer can get a list of all of the error messages at once.
Sometimes, though, one error causes a bunch more errors furhter down the line, that don't make much sence. I took your code sample, converted the "C3Point" and "C3Vector" parameters into pointers; and forward declared these classes. The Coordinate class is simply just a 2d vector class and, if it matters, references nothing but an Environment class. The Environment class references the SpaceObject's but I don't believe that's a problem correct me if I'm wrong.
If it matters the SpaceObject class hierarchy is not all the way filled in, but it is filled in several levels past the SpaceObject and Ship classes. The air type can be And double question mark?? Object-oriented most basic concepts are: classes and objects. The allowable results are as follows: Note that there is an inconsistency when there is a basic data type and an object type such as an array , you need to understand the concept of reference type Perhaps use struct link inside of the struct when defining members that are self-referential to the struct?
Every link has a link inside it, plus some other stuff. How do you expect that to work? That would mean a link would have to be infinitely big! Add a comment. Active Oldest Votes. An object cannot contain itself, as a class member. Improve this answer. Sam Varshavchik Sam Varshavchik Jts Jts 3, 1 1 gold badge 7 7 silver badges 13 13 bronze badges.
0コメント