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.
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.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law