Simple but many(or few) people misunderstood or are a not aware ability of structure in cpp to hold both member functions and data members.
In C++, structure can have both variables and functions as members.It can also declare some of its members as 'private' so that they cannot be accessed directly by the external functions.Since class is a specially introduced data type in C++, most of programmers use the structures for holding only data, and classes to hold both the data and the functions.The...