probem and resolution:
1. "scanf()!= EOF” can't finish the terminal :in visual studio 2008, modify the sentence to "scanf()!= 0” ,and add the “ ctrl + D” at the end of file in the terminal.
=========================================
to be continued。。