my exercise of Visual C++