you might define a default constructor for the struct full_set that passes default values to your key objects:
or you can define a constructor that takes parameters and uses them to construct your key objects:Code:struct full_set { full_set() : n(0), e(0), d(0) {} key n,e,d;//n, e, and d are instances of the key class. };
or a combination of both...Code:struct full_set { full_set( int a, int b, int c) : n(a), e(b), d(c) {} key n,e,d;//n, e, and d are instances of the key class. };




Reply With Quote
