Cpp的一些快速练习。使用来自https://en.wikibooks.org/w/index.php?title=C%2B%2B_Programming/Exercises/Iterations/Pages&stable=0#Exercise_1的问题