cin >> 'md51'; cin >> is for input. 'md51' is a constant string (would be a constant sstring if it had ". not it has ' and is some sort of crazy char). What do you expect this code to do?
md51 is declared as a char variable, though what you want is a string. Then remove ' ' from it on lines 71, 73, 74.