quiz application in terminal using c++ files,inheritance concepts