Do you need to get rid of magic numbers? Consider using a const variable instead of a #define. Although #defines used to have their place, most processors (i.e. anything non-embedded) render macro defines obsolete. For more reasons on why #defines are evil, check out this FAQ:
http://www.parashift.com/c++-faq/defn...
-------------------------
The 'Oly Cow: Outstanding in our field.
コメント