源码文件 main.cpp /* NOTE: This code was written using Microsoft's Visual C++ v 6.0. I don't know how well it will work with other compilers. Y…