The program is supposed to do the following. I want to use a class, named student, which consists of 3 variables, name, grade and height. The name should be alphabetical, in small letters, grade an integer raging from 0 to 100 and height a double variable raging from 1.20 to 2.20. Then, output the final correct inputs in a board-like way. I've made the class, but the program crashes immediately after outputting the data. I don't why it's doing this. Also some advice on how to make a destructor correctly would be appreciated.
It looks like what you're trying to do is to remove a student with invalid data. I think you should approach this in a different way. Don't create a student at all until you have valid data first. Also, your make_student function is fulfilling a role that should be played by a constructor.
Your current student class would then be reduced to this: