class1 has a member m_name
Since std:vector <class1*> Myclass is a vector of pointer to a class,
Myclass=the element of the vector, which is a pointer a class1
Myclass->m_name =gets the N_name of class1.
I trying output the m_name
for ( int i = 0; i < Myclass.size(); i++) {
std::cout << (Myclass)->m_name << "\n ";
}
this cause a segmentation fault.
