cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
what is better?
what is better?
Feb 15, 2017 at 10:08am UTC
ahmad001
(4)
in declaration #define
1. in header file (.h)
2. in source file (.cpp)
can you help me for have best code?
Feb 15, 2017 at 11:20am UTC
MikeyBoy
(5631)
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.