NumbLock iPF Novice Nov 6, 2010 #1 Hi Devs, I understand that const is a statement and #define is a preprocessor directive, but when should one use one or the other?
Hi Devs, I understand that const is a statement and #define is a preprocessor directive, but when should one use one or the other?
J jychong iPF Noob Dec 18, 2010 #2 In general if you are going the C++ route and you don't need a preprocessor, const is the way to go since it is cleaner.
In general if you are going the C++ route and you don't need a preprocessor, const is the way to go since it is cleaner.