Nothing messed up here. He has no default constructor, because a student without a name doesn't make sense.


You should use a std::vector instead of the array, though, and add constructed objects at demand.