what is better?

in declaration #define

1. in header file (.h)

2. in source file (.cpp)


can you help me for have best code?
If you need the macro definition to be in multiple files, then put it in a header that can be included by those multiple files. Otherwise, there's no need to put it in a header.
Topic archived. No new replies allowed.