Code://Line.h const int MAX_CHARS = 6; struct Line { bool set (int n, const char* str); void display () const; private: int line_no; char lineStr [MAX_CHARS+1]; };and there are Line.cpp and List.cpp. My List display supposed to call Line display.Code://********** List.h #include "Line.h" const int MAX_LINES = 3; struct List { void set (int); void display() const; private: Line listLines [MAX_LINES]; };
I dont know how to call this function properly.Code:void display () const { Line.display() const; }