Why do people use enums in C++ as constants while they can use const?
Often you'll see enum { SOMETHING = 2232; } (like that; unnamed enum with one value only) instead of
const int SOMETHING = 2232;. It's because enum never gets any storage while const variable is stil
原创
2013-04-20 21:32:45 ·
719 阅读 ·
0 评论