Folgender Code (Headerfile "draw-list.h"):
Code: Alles auswählen
class point2d
    {
        friend class POINT_LIST<point2d>;
    
        private: 
            int x, y;
        public: 
            point2d* next;
            point2d* prev;
            point2d (int xp, int yp) 
                : x(xp), 
                  y(yp); // hier kommt der Fehler
    };Was will G++ von mir, ich hab das meines Erachtens genauso gemacht, wie ichs anderswo im Netz als funktionierend gesehen habe.draw-list.h: In constructor 'list::point2d::point2d(int, int)':
draw-list.h:70:23: error: expected '{' at end of input
MfG


