在Bjarne Stroustrup的C++之旅中,每章末尾列出了一些建议.在第一章的最后,其中一个读到:
避免''魔术常数;''使用符号常数;
什么是魔法和象征常数?
c++ constants
c++ ×1
constants ×1