August 28th, 2012, 6:42 pm
QuoteOriginally posted by: countblessingsPlease see below example:class A{ public: private: int x;}vector<A> a_vector;How can I make the vector a_vector inherit the private member x?You would be better off on StackOverflow.com for beginner questions.However, your question really makes no sense and wouldn't last long there.