fix bug

modify debug function of derived class
remove system("pause")